Skip to content

Commit

Permalink
Item1918: handle duplicate tags
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/trunk/TagsPlugin@7892 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
OliverKrueger authored and OliverKrueger committed Jun 23, 2010
1 parent 882375d commit c93c8e1
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions lib/Foswiki/Plugins/TagsPlugin/ImportTagMe.pm
Expand Up @@ -120,8 +120,19 @@ sub do {
if ($dryrun) {
$retval .= "(dryrun) <br />";
} else {
try {
Foswiki::Plugins::TagsPlugin::Tag::do( "tag", $webTopic,
$tag, $user_id, $public );
}
catch Error::Simple with {
my $e = shift;
my $n = $e->{'-value'};
if ( $n == 3 ) {
$retval .= " (skipping, duplicate)";
} else {
$e->throw();
}
}
$retval .= "<br />";
}
}
Expand Down

0 comments on commit c93c8e1

Please sign in to comment.