From: Steve Sutton Date: Thu, 24 Jan 2019 15:37:43 +0000 (-0500) Subject: Order city names. X-Git-Tag: v1.7.17^2~2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=a83f8a74cb212e5766d7630555c6cce1a89fe9e5;p=WP-Plugins%2Fglm-member-db-events.git Order city names. Order this getList by city name. --- 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'] ) ) {