Update card.php
This commit is contained in:
parent
fe537fb2fc
commit
d82765c6da
@ -97,11 +97,6 @@ if ($object->id > 0) {
|
|||||||
|
|
||||||
$now = dol_now();
|
$now = dol_now();
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Actions
|
|
||||||
*/
|
|
||||||
|
|
||||||
if ($id > 0 && empty($object->id))
|
if ($id > 0 && empty($object->id))
|
||||||
{
|
{
|
||||||
// Load data of third party
|
// Load data of third party
|
||||||
@ -109,6 +104,12 @@ if ($id > 0 && empty($object->id))
|
|||||||
if ($object->id < 0) dol_print_error($db, $object->error, $object->errors);
|
if ($object->id < 0) dol_print_error($db, $object->error, $object->errors);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Actions
|
||||||
|
*/
|
||||||
|
|
||||||
$parameters = array('id' => $id, 'socid' => $id);
|
$parameters = array('id' => $id, 'socid' => $id);
|
||||||
$reshook = $hookmanager->executeHooks('doActions', $parameters, $object, $action); // Note that $action and $object may have been modified by some
|
$reshook = $hookmanager->executeHooks('doActions', $parameters, $object, $action); // Note that $action and $object may have been modified by some
|
||||||
if ($reshook < 0) setEventMessages($hookmanager->error, $hookmanager->errors, 'errors');
|
if ($reshook < 0) setEventMessages($hookmanager->error, $hookmanager->errors, 'errors');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user