Skip to content

Commit

Permalink
bug:2240
Browse files Browse the repository at this point in the history
Notice is displayed if no tag entered in batch manager

git-svn-id: http://piwigo.org/svn/trunk@10008 68402e56-0260-453c-a942-63ccdbb3a9ee
  • Loading branch information
patdenice committed Apr 3, 2011
1 parent d9a8ff3 commit ce50aa7
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions admin/batch_manager_global.php
Expand Up @@ -117,12 +117,19 @@

if ('add_tags' == $action)
{
$tag_ids = get_fckb_tag_ids($_POST['add_tags']);
add_tags($tag_ids, $collection);

if ('with no tag' == $page['prefilter'])
if (empty($_POST['add_tags']))
{
array_push($page['errors'], l10n('Select at least one tag'));
}
else
{
redirect(get_root_url().'admin.php?page='.$_GET['page']);
$tag_ids = get_fckb_tag_ids($_POST['add_tags']);
add_tags($tag_ids, $collection);

if ('with no tag' == $page['prefilter'])
{
redirect(get_root_url().'admin.php?page='.$_GET['page']);
}
}
}

Expand Down

0 comments on commit ce50aa7

Please sign in to comment.