From 3a076f460d89628e75a7e9e693be0c3962ac2c39 Mon Sep 17 00:00:00 2001 From: plegall Date: Fri, 19 Mar 2010 12:50:19 +0000 Subject: 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 --- admin/element_set_global.php | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) (limited to 'admin/element_set_global.php') 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 -- cgit v1.2.3