mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-28 04:09:56 +03:00
- 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
This commit is contained in:
parent
e51d22bb01
commit
99ea8d67d4
3 changed files with 12 additions and 6 deletions
|
@ -270,7 +270,6 @@ if (
|
||||||
'album', // public/private; lock/unlock, permissions
|
'album', // public/private; lock/unlock, permissions
|
||||||
'cat_move',
|
'cat_move',
|
||||||
'cat_options', // public/private; lock/unlock
|
'cat_options', // public/private; lock/unlock
|
||||||
'batch_manager', // associate/dissociate; delete; set level
|
|
||||||
'user_list', // group assoc; user level
|
'user_list', // group assoc; user level
|
||||||
'user_perm',
|
'user_perm',
|
||||||
)
|
)
|
||||||
|
|
|
@ -87,6 +87,11 @@ if (isset($_POST['submit']))
|
||||||
|
|
||||||
$action = $_POST['selectAction'];
|
$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)
|
if ('remove_from_caddie' == $action)
|
||||||
{
|
{
|
||||||
$query = '
|
$query = '
|
||||||
|
@ -376,7 +381,7 @@ DELETE
|
||||||
$page['infos'][] = l10n('Metadata synchronized from file');
|
$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.'
|
$query='SELECT path,representative_ext FROM '.IMAGES_TABLE.'
|
||||||
WHERE id IN ('.implode(',', $collection).')';
|
WHERE id IN ('.implode(',', $collection).')';
|
||||||
|
@ -493,7 +498,8 @@ $categories = array_from_query($query);
|
||||||
usort($categories, 'global_rank_compare');
|
usort($categories, 'global_rank_compare');
|
||||||
display_select_categories($categories, array(), 'category_full_name_options', true);
|
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
|
// in the filter box, which category to select by default
|
||||||
$selected_category = array();
|
$selected_category = array();
|
||||||
|
|
|
@ -116,6 +116,7 @@ SELECT id, date_creation
|
||||||
);
|
);
|
||||||
|
|
||||||
$page['infos'][] = l10n('Photo informations updated');
|
$page['infos'][] = l10n('Photo informations updated');
|
||||||
|
invalidate_user_cache();
|
||||||
}
|
}
|
||||||
|
|
||||||
// +-----------------------------------------------------------------------+
|
// +-----------------------------------------------------------------------+
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue