From 3d2b12b88e3c658f8af7674bbcda0a6087a03899 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Mon, 2 Oct 2023 11:44:05 -0600 Subject: [PATCH] Fixed the contact search --- app/contacts/contact_json.php | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/app/contacts/contact_json.php b/app/contacts/contact_json.php index 1489a75dd6..92e26417b9 100644 --- a/app/contacts/contact_json.php +++ b/app/contacts/contact_json.php @@ -40,13 +40,6 @@ //set additional variables $show = $_GET["show"] ?? ''; -//get posted data - if (!empty($_POST['contacts'])) { - $action = $_POST['action']; - $search = $_POST['search']; - $name = $_POST['name']; - } - //retrieve current user's assigned groups (uuids) foreach ($_SESSION['groups'] as $group_data) { $user_group_uuids[] = $group_data['group_uuid']; @@ -56,7 +49,7 @@ $user_group_uuids[] = $_SESSION["user_uuid"]; //add the search term - if (isset($search)) { + if (!empty($_GET["search"])) { $search = strtolower($_GET["search"]); }