From 2d986f9f35167ee66d0f084d3de6e70c78b69f7b Mon Sep 17 00:00:00 2001 From: Matt Beckett Date: Sat, 14 Jul 2012 01:37:05 -0600 Subject: Fixes #3240 - makes categories sticky --- mod/categories/views/default/input/categories.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'mod/categories/views/default/input') 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(); -- cgit v1.2.3