Fix: missing parameters

This commit is contained in:
Regis Houssin 2018-04-13 09:09:26 +02:00
parent 7d1292d838
commit 7c3f0be83d

View File

@ -820,7 +820,7 @@ if ($action == 'create' || $action == 'adduserldap')
}
// Other form for add user to group
$parameters=array('valuetoshow' => $valuetoshow);
$parameters=array('valuetoshow' => $valuetoshow, 'password' => $password);
$reshook=$hookmanager->executeHooks('printUserPasswordField',$parameters,$object,$action); // Note that $action and $object may have been modified by hook
if ($reshook > 0) $valuetoshow=$hookmanager->resPrint; // to replace
else $valuetoshow.=$hookmanager->resPrint; // to add