From: Steve Sutton Date: Tue, 15 Jan 2019 13:24:12 +0000 (-0500) Subject: Update member list model X-Git-Tag: v2.11.0^2~12 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=9f317709fd619c8335eaf14fdf3c8346d82d4b34;p=WP-Plugins%2Fglm-member-db.git 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 --- 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']; }