Fix: If error on add line of type "product" when creating
proposal/order/invoice, do not show date of services.
This commit is contained in:
parent
8d4fc263c5
commit
737dfab5b2
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user