Merge pull request #23100 from rycks/14_pass_action_to_doPreMassActions_hook
fix #23099 : pass massaction to hook instead of action
This commit is contained in:
commit
e2e01868f1
@ -360,7 +360,8 @@ if ($massaction == 'preapproveleave') {
|
|||||||
// Allow Pre-Mass-Action hook (eg for confirmation dialog)
|
// Allow Pre-Mass-Action hook (eg for confirmation dialog)
|
||||||
$parameters = array(
|
$parameters = array(
|
||||||
'toselect' => isset($toselect) ? $toselect : array(),
|
'toselect' => isset($toselect) ? $toselect : array(),
|
||||||
'uploaddir' => isset($uploaddir) ? $uploaddir : null
|
'uploaddir' => isset($uploaddir) ? $uploaddir : null,
|
||||||
|
'massaction' => $massaction
|
||||||
);
|
);
|
||||||
|
|
||||||
$reshook = $hookmanager->executeHooks('doPreMassActions', $parameters, $object, $action);
|
$reshook = $hookmanager->executeHooks('doPreMassActions', $parameters, $object, $action);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user