aboutsummaryrefslogtreecommitdiffstats
path: root/admin/cat_modify.php
diff options
context:
space:
mode:
authormistic100 <mistic@piwigo.org>2014-05-24 16:24:52 +0000
committermistic100 <mistic@piwigo.org>2014-05-24 16:24:52 +0000
commitad10a97f4ac3ffad5508b90da45b5c5a63db95ff (patch)
tree5d31569cbd3784fee3ed7662dd838d281d3910cc /admin/cat_modify.php
parentfea2a4efd1ad085def7cf84cc444325d0815b62e (diff)
feature 3077 : use selectize on batch_manager_global, cat_modify and photos_add_direct
+ rewrite "add album" popup (more flexible and working with selectize) git-svn-id: http://piwigo.org/svn/trunk@28533 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--admin/cat_modify.php27
1 files changed, 6 insertions, 21 deletions
diff --git a/admin/cat_modify.php b/admin/cat_modify.php
index 4eeeffe42..da7776137 100644
--- a/admin/cat_modify.php
+++ b/admin/cat_modify.php
@@ -288,12 +288,11 @@ else
$intro.= '<br>'.l10n('Numeric identifier : %d', $category['id']);
-$template->assign('INTRO', $intro);
-
-$template->assign(
- 'U_MANAGE_RANKS',
- $base_url.'element_set_ranks&amp;cat_id='.$category['id']
- );
+$template->assign(array(
+ 'INTRO' => $intro,
+ 'U_MANAGE_RANKS' => $base_url.'element_set_ranks&amp;cat_id='.$category['id'],
+ 'CACHE_KEYS' => get_admin_client_cache_keys(array('categories')),
+ ));
if ($category['is_virtual'])
{
@@ -366,21 +365,7 @@ SELECT id,representative_ext,path
if ($category['is_virtual'])
{
- // the category can be moved in any category but in itself, in any
- // sub-category
- $unmovables = get_subcat_ids(array($category['id']));
-
- $query = '
-SELECT id,name,uppercats,global_rank
- FROM '.CATEGORIES_TABLE.'
- WHERE id NOT IN ('.implode(',', $unmovables).')
-;';
-
- display_select_cat_wrapper(
- $query,
- empty($category['id_uppercat']) ? array() : array($category['id_uppercat']),
- 'move_cat_options'
- );
+ $template->assign('parent_category', empty($category['id_uppercat']) ? array() : array($category['id_uppercat']));
}
trigger_action('loc_end_cat_modify');