2
0
forked from Wavyzz/dolibarr

FIX Trigger *_MODIFY must be called when editing a property event extra.

Clean duplicate trigggers "*_CLONE"
This commit is contained in:
Laurent Destailleur
2018-02-20 18:09:38 +01:00
parent 15ba0c3b49
commit 809ef1bd00
27 changed files with 27 additions and 74 deletions

View File

@@ -206,7 +206,7 @@ if ($action == 'update_extras')
$parameters = array('id' => $object->id);
$reshook = $hookmanager->executeHooks('insertExtraFields', $parameters, $object, $action); // Note that $action and $object may have been modified by some hooks
if (empty($reshook)) {
$result = $object->insertExtraFields();
$result = $object->insertExtraFields('DELIVERY_MODIFY');
if ($result < 0)
{
setEventMessages($object->error, $object->errors, 'errors');