Update member list model
authorSteve Sutton <steve@gaslightmedia.com>
Tue, 15 Jan 2019 13:24:12 +0000 (08:24 -0500)
committerSteve Sutton <steve@gaslightmedia.com>
Tue, 15 Jan 2019 13:24:12 +0000 (08:24 -0500)
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

index 4155582..8bacf58 100755 (executable)
@@ -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'];
         }