diff --git a/data/System/TagsPluginTagDetailsDialogExtended.txt b/data/System/TagsPluginTagDetailsDialogExtended.txt index a5ae3e4..8337ec0 100644 --- a/data/System/TagsPluginTagDetailsDialogExtended.txt +++ b/data/System/TagsPluginTagDetailsDialogExtended.txt @@ -40,13 +40,14 @@ -%TAGCLOUD{ - terms="$percntTAGSEARCH{ query=\"topic\" tag=\"$percntTAGNAME$percnt\" format=\"$item:1:$web:$topic:$user\" visibility=\"user\" }$percnt" - split="[,]+" - header="%MAKETEXT{"Where else can I find this tag:"}%%BR%
" - format="$4" - footer="
" - warn="off" +%TAGSEARCH{ + query="topic" + tag="%TAGNAME%" + header="%MAKETEXT{"Where else can I find this tag:"}%%BR%%BR%$n" + format=" * $web [[$item][$topic]]" + sep="$n" + visibility="user" + order="topic" }% %TAGGROUPS{format="$group" sep=","}% diff --git a/data/System/TagsPluginTagDetailsDialogSimple.txt b/data/System/TagsPluginTagDetailsDialogSimple.txt index 88586c8..2a13c35 100644 --- a/data/System/TagsPluginTagDetailsDialogSimple.txt +++ b/data/System/TagsPluginTagDetailsDialogSimple.txt @@ -4,13 +4,14 @@ -%TAGCLOUD{ - terms="$percntTAGSEARCH{ query=\"topic\" tag=\"$percntTAGNAME$percnt\" format=\"$item:1:$web:$topic:$user\" visibility=\"user\" }$percnt" - split="[,]+" - header="%MAKETEXT{"Where else can I find this tag:"}%%BR%
" - format="$4" - footer="
" - warn="off" +%TAGSEARCH{ + query="topic" + tag="%TAGNAME%" + header="%MAKETEXT{"Where else can I find this tag:"}%%BR%%BR%$n" + format=" * $web [[$item][$topic]]" + sep="$n" + visibility="user" + order="topic" }% diff --git a/lib/Foswiki/Plugins/TagsPlugin/Public.pm b/lib/Foswiki/Plugins/TagsPlugin/Public.pm index 05683c0..9d79030 100644 --- a/lib/Foswiki/Plugins/TagsPlugin/Public.pm +++ b/lib/Foswiki/Plugins/TagsPlugin/Public.pm @@ -217,7 +217,7 @@ sub do { my $statement = sprintf( 'UPDATE %s SET public = ? WHERE %s = ? AND %s = ? AND %s = ? AND public = ?', qw( UserItemTag item_id tag_id user_id ) ); - my $affected_rows = + $affected_rows = $db->dbInsert( $statement, $public, $item_id, $tag_id, $user_id, $public == "0" ? 1 : 0 ); Foswiki::Func::writeDebug(