From 268268b134bb972eed5057881159cdd2e0f8ec95 Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Mon, 3 Oct 2016 15:34:56 -0400 Subject: [PATCH] Update member category list in shortcode builder. Alpha order for member categories. --- models/admin/pages/shortcode.php | 2 +- views/admin/pages/shortcode.html | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/models/admin/pages/shortcode.php b/models/admin/pages/shortcode.php index 563bdd80..06a09eb2 100644 --- a/models/admin/pages/shortcode.php +++ b/models/admin/pages/shortcode.php @@ -145,7 +145,7 @@ class GlmMembersAdmin_pages_shortcode $listAttr = $this->config['addOns']['glm-member-db']['shortcodes']['glm-members-list']['attributes']; $detailAttr = $this->config['addOns']['glm-member-db']['shortcodes']['glm-member-detail']['attributes']; $glmcat = new GlmDataCategories( $this->wpdb, $this->config ); - $categories = $glmcat->getListSortedParentChild(); + $categories = $glmcat->getList('', 'T.name'); // get the each addOn slugs to pass to the config array later $addOns = $this->config['addOns']; diff --git a/views/admin/pages/shortcode.html b/views/admin/pages/shortcode.html index e78221dc..91931cfb 100644 --- a/views/admin/pages/shortcode.html +++ b/views/admin/pages/shortcode.html @@ -9,11 +9,7 @@