From a83f8a74cb212e5766d7630555c6cce1a89fe9e5 Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Thu, 24 Jan 2019 10:37:43 -0500 Subject: [PATCH] Order city names. Order this getList by city name. --- models/front/events/frontAdd.php | 2 +- models/front/events/list.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/models/front/events/frontAdd.php b/models/front/events/frontAdd.php index 6ec1500..4e4abcc 100644 --- a/models/front/events/frontAdd.php +++ b/models/front/events/frontAdd.php @@ -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']; } diff --git a/models/front/events/list.php b/models/front/events/list.php index 6ced97b..1635806 100644 --- a/models/front/events/list.php +++ b/models/front/events/list.php @@ -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'] ) ) { -- 2.17.1