Merge branch 'develop' into feature/ajaxSearch
authorSteve Sutton <steve@gaslightmedia.com>
Fri, 4 Jan 2019 17:53:56 +0000 (12:53 -0500)
committerSteve Sutton <steve@gaslightmedia.com>
Fri, 4 Jan 2019 17:53:56 +0000 (12:53 -0500)
1  2 
models/front/members/list.php
setup/shortcodes.php
setup/validActions.php

@@@ -187,13 -187,8 +187,13 @@@ class GlmMembersFront_members_list exte
          $citySearchSelected   = false;
          $haveFeaturedMembers  = false;
          $featuredMembers      = false;
-         $memberSearch         = false;
+         $fullTextSearch       = false;
          $appendSelect         = '';
 +        $memberType           = false;
 +        $categorySearch       = false;
 +        $amenitySearch        = false;
 +        $citySearch           = false;
 +        $ajaxRequest          = false;
  
          // Paging Parameters
          $paging        = $this->config['settings']['list_pagination']; // Now this is in management
              }
          }
  
-         // If there's regions shortcode or url options to restrict this page to certain regions
-         if (count($regions) > 0) {
-             while ( list($k,$v) = each ($regionData) ) {
-                 if (!in_array($v['id'], $regions)) {
-                     unset ($regionData[$k]);
-                 }
-             }
-         }
          $counties = array();
 -        if ($actionData['request']['county-search']) {
 +        // If we have a county set in shortcode or via URL.
 +        if ( isset( $actionData['request']['county-search'] ) && $actionData['request']['county-search']) {
  
              // Convert comma separated list to an array
-             $countiesRequested = explode( ',', $actionData['request']['county-search'] );
+             $regionsRequested = explode( ',', $actionData['request']['county-search'] );
  
              // Check for numeric ID's only
-             while ( list( $k, $v ) = each( $countiesRequested ) ) {
+             while ( list( $k, $v ) = each( $regionsRequested ) ) {
                  if ( preg_match( '/^[0-9]*$/', trim( $v ) && $v > 0 ) ) {
                      $counties[] = ( $v - 0 );
                  }
Simple merge
Simple merge