Fix: missing right parameter

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

View File

@ -819,7 +819,7 @@ if ($action == 'create' || $action == 'adduserldap')
} }
} }
// Other form for add user to group // Other form for user password
$parameters=array('valuetoshow' => $valuetoshow, 'password' => $password); $parameters=array('valuetoshow' => $valuetoshow, 'password' => $password);
$reshook=$hookmanager->executeHooks('printUserPasswordField',$parameters,$object,$action); // Note that $action and $object may have been modified by hook $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 if ($reshook > 0) $valuetoshow=$hookmanager->resPrint; // to replace
@ -828,7 +828,7 @@ if ($action == 'create' || $action == 'adduserldap')
print $valuetoshow; print $valuetoshow;
print '</td></tr>'; print '</td></tr>';
if(! empty($conf->api->enabled)) if (! empty($conf->api->enabled))
{ {
// API key // API key
$generated_api_key = ''; $generated_api_key = '';
@ -1371,7 +1371,7 @@ else
} }
} }
// Other form for add user to group // Other form for user password
$parameters=array('valuetoshow' => $valuetoshow); $parameters=array('valuetoshow' => $valuetoshow);
$reshook=$hookmanager->executeHooks('printUserPasswordField',$parameters,$object,$action); // Note that $action and $object may have been modified by hook $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 if ($reshook > 0) $valuetoshow=$hookmanager->resPrint; // to replace
@ -1938,8 +1938,8 @@ else
} }
} }
// Other form for add user to group // Other form for user password
$parameters=array('valuetoshow' => $valuetoshow); $parameters=array('valuetoshow' => $valuetoshow, 'caneditpassword' => $caneditpassword);
$reshook=$hookmanager->executeHooks('printUserPasswordField',$parameters,$object,$action); // Note that $action and $object may have been modified by hook $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 if ($reshook > 0) $valuetoshow=$hookmanager->resPrint; // to replace
else $valuetoshow.=$hookmanager->resPrint; // to add else $valuetoshow.=$hookmanager->resPrint; // to add