put full name into first line of user selector

makes it possible to search for it
This commit is contained in:
Uwe Steinmann 2020-12-18 12:43:07 +01:00
parent d339aad6ae
commit 9e239a3c65

View File

@ -542,7 +542,7 @@ $(document).ready( function() {
$options[] = array("-1", getMLText("choose_user"));
$options[] = array("0", getMLText("add_user"));
foreach ($users as $currUser) {
$options[] = array($currUser->getID(), htmlspecialchars($currUser->getLogin()), $seluser && $currUser->getID()==$seluser->getID(), array(array('data-subtitle', htmlspecialchars($currUser->getFullName()))));
$options[] = array($currUser->getID(), htmlspecialchars($currUser->getLogin().' - '.$currUser->getFullName()), $seluser && $currUser->getID()==$seluser->getID(), array(array('data-subtitle', htmlspecialchars($currUser->getEmail()))));
}
$this->formField(
null, //getMLText("selection"),