Skip to content
Snippets Groups Projects
Commit 737dfab5 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Fix: If error on add line of type "product" when creating

proposal/order/invoice, do not show date of services.
parent 8d4fc263
No related branches found
No related tags found
No related merge requests found
......@@ -2000,7 +2000,7 @@ if ($action == 'create')
{
$var = true;
// Add free products/services
// Add products/services form
$object->formAddObjectLine(1, $mysoc, $soc);
$parameters = array();
......
......@@ -271,7 +271,7 @@ else {
</tr>
<?php
if (! empty($conf->service->enabled) && $dateSelector)
if (! empty($conf->service->enabled) && $dateSelector && GETPOST('type') != '0')
{
if(! empty($conf->global->MAIN_VIEW_LINE_NUMBER)) $colspan = 10;
else $colspan = 9;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment