From d1aa868c24b6307daf8d1eee6cddcdf3b3d4bef9 Mon Sep 17 00:00:00 2001 From: Sebijk Date: Sat, 14 Oct 2023 14:43:34 +0200 Subject: [PATCH] search filter absendername --- src/admin/templates/users.search.tpl | 3 +++ src/admin/users.php | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/admin/templates/users.search.tpl b/src/admin/templates/users.search.tpl index 93afdc2..5fc58d6 100644 --- a/src/admin/templates/users.search.tpl +++ b/src/admin/templates/users.search.tpl @@ -29,6 +29,9 @@ + + +   diff --git a/src/admin/users.php b/src/admin/users.php index f2e3802..de18404 100644 --- a/src/admin/users.php +++ b/src/admin/users.php @@ -277,7 +277,7 @@ if($_REQUEST['action'] == 'users') // do the query! $users = array(); - $res = $db->Query('SELECT id,email,vorname,nachname,strasse,hnr,plz,ort,gruppe,gesperrt,lastlogin,profilfelder ' . $theQuery . ' ' + $res = $db->Query('SELECT id,email,vorname,nachname,strasse,hnr,plz,ort,gruppe,gesperrt,lastlogin,profilfelder,absendername ' . $theQuery . ' ' . 'ORDER BY ' . $sortBy . ' ' . $sortOrder . ' ' . 'LIMIT ' . $startPos . ',' . $perPage); @@ -903,6 +903,8 @@ else if($_REQUEST['action'] == 'search') $fields = array_merge($fields, array('strasse', 'hnr', 'plz', 'ort', 'land')); else if($field == 'telfaxmobile') $fields = array_merge($fields, array('tel', 'fax', 'mail2sms_nummer')); + else if($field == 'absendername') + $fields[] = 'absendername'; } // build query string