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:
Laurent Destailleur 2014-11-16 19:12:05 +01:00
parent 8d4fc263c5
commit 737dfab5b2
2 changed files with 2 additions and 2 deletions

View File

@ -2000,7 +2000,7 @@ if ($action == 'create')
{
$var = true;
// Add free products/services
// Add products/services form
$object->formAddObjectLine(1, $mysoc, $soc);
$parameters = array();

View File

@ -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;