diff options
author | Yorhel <git@yorhel.nl> | 2015-09-20 15:12:05 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2015-09-20 15:12:05 +0200 |
commit | bb7a7cc178144457d401c3c6479a41788cf681dd (patch) | |
tree | 40bd705081da74c2e665d0c7552dad2c34bcb43c /lib/VNDB/Handler/Chars.pm | |
parent | 28681f6b12b1d8958ae1d792bb831120530de15a (diff) |
formValidate: Created templates for gtin and editsum fields
Diffstat (limited to 'lib/VNDB/Handler/Chars.pm')
-rw-r--r-- | lib/VNDB/Handler/Chars.pm | 3 |
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); |