aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2012-07-14 04:32:06 -0700
committerCash Costello <cash.costello@gmail.com>2012-07-14 04:32:06 -0700
commit9784c62f8c0253e221dea3ff763614fe6aca20da (patch)
treefef8e316f207423e20ee51bcb64e2ad4385732b8
parentd7a5c24dd7c31318cf2e4405337919b7fd5ec304 (diff)
parent2d986f9f35167ee66d0f084d3de6e70c78b69f7b (diff)
downloadelgg-9784c62f8c0253e221dea3ff763614fe6aca20da.tar.gz
elgg-9784c62f8c0253e221dea3ff763614fe6aca20da.tar.bz2
Merge pull request #321 from beck24/#3240-sticky-categories
Fixes #3240 - makes categories sticky
-rw-r--r--mod/categories/views/default/input/categories.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/mod/categories/views/default/input/categories.php b/mod/categories/views/default/input/categories.php
index 75960d257..b543cde45 100644
--- a/mod/categories/views/default/input/categories.php
+++ b/mod/categories/views/default/input/categories.php
@@ -10,6 +10,12 @@
if (isset($vars['entity']) && $vars['entity'] instanceof ElggEntity) {
$selected_categories = $vars['entity']->universal_categories;
}
+
+// use sticky values if set
+if (isset($vars['universal_categories_list'])) {
+ $selected_categories = $vars['universal_categories_list'];
+}
+
$categories = elgg_get_site_entity()->categories;
if (empty($categories)) {
$categories = array();