summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2010-01-23 14:15:23 +0100
committerYorhel <git@yorhel.nl>2010-01-23 14:15:23 +0100
commit338757ed97d648b20860ff7c865e600b07f0192b (patch)
tree3f4e1ad8fff3627ac58788935bd68652120151af
parent799c9e44b1a1a7776609273733f67887a74e33bf (diff)
Handler::Releases: Made the release date a required field
-rw-r--r--ChangeLog1
-rw-r--r--lib/VNDB/Handler/Releases.pm2
2 files changed, 3 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index f236b466..c70bab5a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,7 @@ git - ?
- Added Slovak to the language list
- Centered the thumbnails on the screenshots viewer
- Improved date selector
+ - Made the release date a required field
2.10 - 2010-01-10
- VN score on tag pages use plain averages instead of bayesian rating
diff --git a/lib/VNDB/Handler/Releases.pm b/lib/VNDB/Handler/Releases.pm
index 498b9fa9..eb6ea531 100644
--- a/lib/VNDB/Handler/Releases.pm
+++ b/lib/VNDB/Handler/Releases.pm
@@ -325,6 +325,8 @@ sub edit {
{ name => 'editsum', maxlength => 5000 },
);
+ push @{$frm->{_err}}, [ 'released', 'required', 1 ] if !$frm->{released};
+
my($media, $producers, $new_vn);
if(!$frm->{_err}) {
# de-serialize