From 9f317709fd619c8335eaf14fdf3c8346d82d4b34 Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Tue, 15 Jan 2019 08:24:12 -0500 Subject: [PATCH] Update member list model Adding the countySearch. If model finds $_REQUEST['countySearch'] it will set the list to pull only matching records with that county --- models/front/members/list.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/models/front/members/list.php b/models/front/members/list.php index 41555822..8bacf580 100755 --- a/models/front/members/list.php +++ b/models/front/members/list.php @@ -215,6 +215,9 @@ class GlmMembersFront_members_list extends GlmDataMemberInfo if (isset($_REQUEST['categorySearch'])) { $actionData['request']['category-search'] = $_REQUEST['categorySearch']; } + if ( isset( $_REQUEST['countySearch'] ) && filter_var( $_REQUEST['countySearch'], FILTER_VALIDATE_INT ) ) { + $actionData['request']['county-search'] = $_REQUEST['countySearch']; + } if (isset($_REQUEST['textSearch'])) { $actionData['request']['text-search'] = $_REQUEST['textSearch']; } -- 2.17.1