summaryrefslogtreecommitdiff
path: root/lib/VNDB/Util
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2015-10-01 20:00:02 +0200
committerYorhel <git@yorhel.nl>2015-10-01 20:00:02 +0200
commit4cebc475aa4cd045d16e91616f148454d06d3c7d (patch)
tree4d56e894c7a50648246e730a0f104fc7b61331b0 /lib/VNDB/Util
parent423a37af953817b59879f2d3013a44a54006ec3b (diff)
VNEdit: Give error on duplicate alias + improved msg on id/page error
Diffstat (limited to 'lib/VNDB/Util')
-rw-r--r--lib/VNDB/Util/FormHTML.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/VNDB/Util/FormHTML.pm b/lib/VNDB/Util/FormHTML.pm
index a319ba42..611fdf46 100644
--- a/lib/VNDB/Util/FormHTML.pm
+++ b/lib/VNDB/Util/FormHTML.pm
@@ -38,9 +38,10 @@ sub htmlFormError {
li mt '_formerr_maxlength', $field, $rule if $type eq 'maxlength';
li mt '_formerr_enum', $field, join ', ', @$rule if $type eq 'enum';
li mt '_formerr_wrongboard', $rule if $type eq 'wrongboard';
+ li mt '_formerr_existingalias', $rule if $type eq 'existingalias';
li $rule->[1] if $type eq 'func' || $type eq 'regex';
if($type eq 'template') {
- $rule = 'int' if $rule eq 'num' || $rule eq 'uint';
+ $rule = 'int' if $rule eq 'num' || $rule eq 'uint' || $rule eq 'page' || $rule eq 'id';
li; lit mt "_formerr_tpl_$rule", $field; end;
}
if($type eq 'tagexists') {