Fix missing hook then can't interact with actions

This commit is contained in:
atm-ph 2019-07-18 15:40:50 +02:00
parent a3b746bcb9
commit c961a397c4

View File

@ -61,11 +61,20 @@ if ($id > 0 || ! empty($ref))
} }
} }
$hookmanager->initHooks(array('levycard','globalcard'));
/* /*
* Actions * Actions
*/ */
$parameters = array('socid' => $socid);
$reshook = $hookmanager->executeHooks('doActions', $parameters, $object, $action); // Note that $action and $object may have been modified by some hooks
if ($reshook < 0) setEventMessages($hookmanager->error, $hookmanager->errors, 'errors');
if (empty($reshook))
{
if ($action == "new") if ($action == "new")
{ {
if ($object->id > 0) if ($object->id > 0)
@ -100,6 +109,7 @@ if ($action == "delete")
} }
} }
} }
}
/* /*