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/VNEdit.pm | |
parent | 28681f6b12b1d8958ae1d792bb831120530de15a (diff) |
formValidate: Created templates for gtin and editsum fields
Diffstat (limited to 'lib/VNDB/Handler/VNEdit.pm')
-rw-r--r-- | lib/VNDB/Handler/VNEdit.pm | 3 |
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} }, |