summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2018-07-07 06:49:38 +0200
committerYorhel <git@yorhel.nl>2018-07-07 06:49:42 +0200
commitae39170f9fcd35adfd5fa7cbce8e808715e6bdd6 (patch)
tree5708af9d7ba69bbda377e0fc90efdf2177905d20
parent26f1c77ba155f1ca6d90b56e3148fb4fb5ed7eec (diff)
Handler::Traits: Fix link in duplicate trait creation
https://vndb.org/t950.456
-rw-r--r--lib/VNDB/Handler/Traits.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VNDB/Handler/Traits.pm b/lib/VNDB/Handler/Traits.pm
index 41057c44..a8c344c9 100644
--- a/lib/VNDB/Handler/Traits.pm
+++ b/lib/VNDB/Handler/Traits.pm
@@ -162,7 +162,7 @@ sub traitedit {
if(!$frm->{_err}) {
my @dups = @{$self->dbTraitGet(name => $frm->{name}, noid => $trait, group => $group)};
push @dups, @{$self->dbTraitGet(name => $_, noid => $trait, group => $group)} for split /[\t\s]*\n[\t\s]*/, $frm->{alias};
- push @{$frm->{_err}}, \sprintf 'Trait <a href="/c%d">%s</a> already exists within the same group.', $_->{id}, xml_escape $_->{name} for @dups;
+ push @{$frm->{_err}}, \sprintf 'Trait <a href="/i%d">%s</a> already exists within the same group.', $_->{id}, xml_escape $_->{name} for @dups;
}
if(!$frm->{_err}) {