diff options
author | Matt Beckett <beck24@gmail.com> | 2012-07-14 01:37:05 -0600 |
---|---|---|
committer | Matt Beckett <beck24@gmail.com> | 2012-07-14 01:37:05 -0600 |
commit | 2d986f9f35167ee66d0f084d3de6e70c78b69f7b (patch) | |
tree | 358e7a8849509ecbd183aadc45ff34625dcc7795 /mod/categories | |
parent | 4859e56edf1b17092751a6e9d7d89b03113253db (diff) | |
download | elgg-2d986f9f35167ee66d0f084d3de6e70c78b69f7b.tar.gz elgg-2d986f9f35167ee66d0f084d3de6e70c78b69f7b.tar.bz2 |
Fixes #3240 - makes categories sticky
Diffstat (limited to 'mod/categories')
-rw-r--r-- | mod/categories/views/default/input/categories.php | 6 |
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(); |