aboutsummaryrefslogtreecommitdiffstats
path: root/admin/element_set_global.php
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2010-03-19 12:50:19 +0000
committerplegall <plg@piwigo.org>2010-03-19 12:50:19 +0000
commit3a076f460d89628e75a7e9e693be0c3962ac2c39 (patch)
tree2155ac51c61e251057a1d9127b54a4d8588950df /admin/element_set_global.php
parentb7fee65e8fccc08b3741bc63725f58aae73eb456 (diff)
feature 724: FCBKcomplete propagated to element_set_global and
element_set_unit to manage tags. Note: multiple instances of FCBKcomplete on the same page does not work as good as a single instance. git-svn-id: http://piwigo.org/svn/trunk@5188 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--admin/element_set_global.php17
1 files changed, 2 insertions, 15 deletions
diff --git a/admin/element_set_global.php b/admin/element_set_global.php
index 1a74e1c42..113b5b1f8 100644
--- a/admin/element_set_global.php
+++ b/admin/element_set_global.php
@@ -148,7 +148,8 @@ if (isset($_POST['submit']))
if (isset($_POST['add_tags']) and count($collection) > 0)
{
- add_tags($_POST['add_tags'], $collection);
+ $tag_ids = get_fckb_tag_ids($_POST['add_tags']);
+ add_tags($tag_ids, $collection);
}
if (isset($_POST['del_tags']) and count($collection) > 0)
@@ -367,20 +368,6 @@ SELECT
display_select_cat_wrapper($query, array(), 'dissociate_options', true);
}
-$all_tags = get_all_tags();
-
-if (count($all_tags) > 0)
-{// add tags
- $template->assign(
- array(
- 'ADD_TAG_SELECTION' => get_html_tag_selection(
- $all_tags,
- 'add_tags'
- ),
- )
- );
-}
-
if (count($page['cat_elements_id']) > 0)
{
// remove tags