diff options
author | rvelices <rv-github@modusoptimus.com> | 2014-05-17 05:58:07 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2014-05-17 05:58:07 +0000 |
commit | 99ea8d67d458ee5864918f59ff2c3460e048065c (patch) | |
tree | 37acc3774f9e8f5967beb123d0be6097573063cd /admin/batch_manager_global.php | |
parent | e51d22bb01b4cbdb16873200ab3cd2c0e01d118f (diff) |
- dont't invalidate_user_cache on batch manager refresh photo set or add/remove caddie or generate/delete derivatives
- removed double sql query from batch_manager_global
git-svn-id: http://piwigo.org/svn/trunk@28490 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/batch_manager_global.php')
-rw-r--r-- | admin/batch_manager_global.php | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/admin/batch_manager_global.php b/admin/batch_manager_global.php index ddcfa222c..3268ea278 100644 --- a/admin/batch_manager_global.php +++ b/admin/batch_manager_global.php @@ -87,6 +87,11 @@ if (isset($_POST['submit'])) $action = $_POST['selectAction']; + if (!in_array($action, array('remove_from_caddie','add_to_caddie','delete_derivatives','generate_derivatives'))) + { + invalidate_user_cache(); + } + if ('remove_from_caddie' == $action) { $query = ' @@ -376,7 +381,7 @@ DELETE $page['infos'][] = l10n('Metadata synchronized from file'); } - if ('delete_derivatives' == $action) + if ('delete_derivatives' == $action && !empty($_POST['del_derivatives_type'])) { $query='SELECT path,representative_ext FROM '.IMAGES_TABLE.' WHERE id IN ('.implode(',', $collection).')'; @@ -493,7 +498,8 @@ $categories = array_from_query($query); usort($categories, 'global_rank_compare'); display_select_categories($categories, array(), 'category_full_name_options', true); -display_select_cat_wrapper($query, array(), 'category_parent_options'); +$template->assign('category_parent_options', $template->get_template_vars('category_full_name_options')); +$template->assign('category_parent_options_selected', array()); // in the filter box, which category to select by default $selected_category = array(); |