|
48 | 48 | */ |
49 | 49 |
|
50 | 50 | use Admidio\Infrastructure\Database; |
51 | | -use Admidio\Infrastructure\Exception; |
52 | 51 | use Admidio\Infrastructure\Utils\SecurityUtils; |
53 | 52 | use Admidio\Organizations\Entity\Organization; |
54 | 53 |
|
|
67 | 66 |
|
68 | 67 | header('Content-Type: application/json'); |
69 | 68 |
|
70 | | - // show all members of all organizations |
71 | | - $getMembersAllOrgs = $gSettingsManager->getBool('contacts_show_all'); |
72 | | - |
73 | 69 | if (isset($_SESSION['contacts_list_configuration'])) { |
74 | 70 | $contactsListConfig = $_SESSION['contacts_list_configuration']; |
75 | 71 | } |
|
118 | 114 | } |
119 | 115 |
|
120 | 116 | foreach ($searchString as $searchWord) { |
121 | | - $searchCondition .= ' AND CONCAT(' . implode(', \' \', ', $searchColumns) . ') LIKE LOWER(CONCAT(\'%\', ' . $searchValue . ', \'%\')) '; |
| 117 | + $searchCondition .= ' AND LOWER(CONCAT(' . implode(', \' \', ', $searchColumns) . ')) LIKE LOWER(CONCAT(\'%\', ' . $searchValue . ', \'%\')) '; |
122 | 118 | $queryParamsSearch[] = htmlspecialchars_decode($searchWord, ENT_QUOTES | ENT_HTML5); |
123 | 119 | } |
124 | 120 |
|
|
271 | 267 | ON cat_org.cat_id = rol_org.rol_cat_id |
272 | 268 | WHERE mem_org.mem_usr_id = usr_id |
273 | 269 | ) AS member_org_ids, |
274 | | - usr_login_name as loginname, |
| 270 | + usr_login_name as login_name, |
275 | 271 | (SELECT email.usd_value FROM ' . TBL_USER_DATA . ' email |
276 | 272 | WHERE email.usd_usr_id = usr_id |
277 | 273 | AND email.usd_usf_id = ? /* $gProfileFields->getProperty(\'email\', \'usf_id\') */ |
|
386 | 382 |
|
387 | 383 | // Administrators can change or send password if login is configured and user is member of current organization |
388 | 384 | if ($contactsOfThisOrganization && $gCurrentUser->isAdministrator() |
389 | | - && !empty($row['loginname']) && $row['usr_uuid'] !== $gCurrentUserUUID) { |
| 385 | + && !empty($row['login_name']) && $row['usr_uuid'] !== $gCurrentUserUUID) { |
390 | 386 | if (!empty($row['member_email']) && $gSettingsManager->getBool('system_notifications_enabled')) { |
391 | 387 | // if email is set and systemmails are activated then administrators can send a new password to user |
392 | 388 | $userAdministration = ' |
|
0 commit comments