NEW do actions hook on bank card

This commit is contained in:
lvessiller 2021-06-10 16:18:20 +02:00
parent 39fe315e3f
commit ed53301cec

View File

@ -73,6 +73,12 @@ $result = restrictedArea($user, 'banque', $id, 'bank_account&bank_account', '',
* Actions * Actions
*/ */
$parameters = array();
$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 ($cancel) { if ($cancel) {
$action = ''; $action = '';
} }
@ -289,7 +295,7 @@ if ($action == 'confirm_delete' && GETPOST("confirm") == "yes" && $user->rights-
$action = ''; $action = '';
} }
} }
}
/* /*
* View * View