summaryrefslogtreecommitdiff
path: root/lib/VNDB/Handler/Chars.pm
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2015-09-20 15:12:05 +0200
committerYorhel <git@yorhel.nl>2015-09-20 15:12:05 +0200
commitbb7a7cc178144457d401c3c6479a41788cf681dd (patch)
tree40bd705081da74c2e665d0c7552dad2c34bcb43c /lib/VNDB/Handler/Chars.pm
parent28681f6b12b1d8958ae1d792bb831120530de15a (diff)
formValidate: Created templates for gtin and editsum fields
Diffstat (limited to 'lib/VNDB/Handler/Chars.pm')
-rw-r--r--lib/VNDB/Handler/Chars.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/VNDB/Handler/Chars.pm b/lib/VNDB/Handler/Chars.pm
index b02bce5c..7171d506 100644
--- a/lib/VNDB/Handler/Chars.pm
+++ b/lib/VNDB/Handler/Chars.pm
@@ -302,11 +302,10 @@ sub edit {
{ post => 'main_spoil', required => 0, default => 0, enum => [ 0..2 ] },
{ post => 'traits', required => 0, default => '', regex => [ qr/^(?:[1-9]\d*-[0-2])(?: +[1-9]\d*-[0-2])*$/, 'Incorrect trait format.' ] },
{ post => 'vns', required => 0, default => '', regex => [ qr/^(?:[1-9]\d*-\d+-[0-2]-[a-z]+)(?: +[1-9]\d*-\d+-[0-2]-[a-z]+)*$/, 'Incorrect VN format.' ] },
- { post => 'editsum', required => 0, maxlength => 5000 },
+ { post => 'editsum', template => 'editsum' },
{ post => 'ihid', required => 0 },
{ post => 'ilock', required => 0 },
);
- push @{$frm->{_err}}, 'badeditsum' if !$frm->{editsum} || lc($frm->{editsum}) eq lc($frm->{desc});
# handle image upload
$frm->{image} = _uploadimage($self, $frm);