Update card.php

This commit is contained in:
Laurent Destailleur 2020-10-02 13:46:44 +02:00 committed by GitHub
parent 4707ea2a27
commit d297e0b05a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2362,14 +2362,13 @@ if ($action == 'create')
// Form to add new line
if ($object->statut == Propal::STATUS_DRAFT && $usercancreate && $action != 'selectlines')
{
if ($action != 'editline')
{
if ($action != 'editline') {
// Add products/services form
$object->formAddObjectLine(1, $mysoc, $soc);
$parameters = array();
$reshook = $hookmanager->executeHooks('formAddObjectLine', $parameters, $object, $action); // Note that $action and $object may have been modified by hook
}else {
} else {
$parameters = array();
$reshook = $hookmanager->executeHooks('formEditObjectLine', $parameters, $object, $action); // Note that $action and $object may have been modified by hook
}