Order city names.
authorSteve Sutton <steve@gaslightmedia.com>
Thu, 24 Jan 2019 15:37:43 +0000 (10:37 -0500)
committerSteve Sutton <steve@gaslightmedia.com>
Thu, 24 Jan 2019 15:37:43 +0000 (10:37 -0500)
Order this getList by city name.

models/front/events/frontAdd.php
models/front/events/list.php

index 6ec1500..4e4abcc 100644 (file)
@@ -240,7 +240,7 @@ class GLmMembersFront_events_frontAdd extends GlmDataEvents
         $view = 'frontAdd';
         // populate cities dropdown
         $cityData = new GlmDataCities( $this->wpdb, $this->config );
-        $cityVals = $cityData->getList();
+        $cityVals = $cityData->getList( null, 'name' );
         foreach ( $cityVals as $city ) {
             $cities[$city['id']] = $city['name'];
         }
index 6ced97b..1635806 100644 (file)
@@ -81,7 +81,7 @@ class GlmMembersFront_events_list extends GlmMembersFront_events_baseAction
         // get list cities to search by
         require_once GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataCities.php';
         $cities = new GlmDataCities($this->wpdb, $this->config);
-        $cityData = $cities->getList();
+        $cityData = $cities->getList( null, 'name' );
 
         // If there's a pageslug as attribute then update the pageSlug
         if ( isset ( $actionData['request']['pageslug'] ) ) {