summaryrefslogtreecommitdiff
path: root/lib/VNDB/Handler/VNEdit.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/VNEdit.pm
parent28681f6b12b1d8958ae1d792bb831120530de15a (diff)
formValidate: Created templates for gtin and editsum fields
Diffstat (limited to 'lib/VNDB/Handler/VNEdit.pm')
-rw-r--r--lib/VNDB/Handler/VNEdit.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/VNDB/Handler/VNEdit.pm b/lib/VNDB/Handler/VNEdit.pm
index 5757f830..409c80cb 100644
--- a/lib/VNDB/Handler/VNEdit.pm
+++ b/lib/VNDB/Handler/VNEdit.pm
@@ -121,11 +121,10 @@ sub edit {
{ post => 'seiyuu', required => 0, default => '[]', maxlength => 5000 },
{ post => 'vnrelations', required => 0, default => '', maxlength => 5000 },
{ post => 'screenshots', required => 0, default => '', maxlength => 1000 },
- { post => 'editsum', required => 0, maxlength => 5000 },
+ { post => 'editsum', required => !$nosubmit, template => 'editsum' },
{ post => 'ihid', required => 0 },
{ post => 'ilock', required => 0 },
);
- push @{$frm->{_err}}, 'badeditsum' if !$nosubmit && (!$frm->{editsum} || lc($frm->{editsum}) eq lc($frm->{desc}));
my $raw_c = !$frm->{_err} && json_validate($frm, 'credits',
{ field => 'aid', required => 1, template => 'id' },
{ field => 'role', required => 1, enum => $self->{staff_roles} },