summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2009-09-10 16:49:21 +0200
committerYorhel <git@yorhel.nl>2009-09-10 16:49:21 +0200
commitd4b446c70e78b78d7e0199bb5c535ec993adc05e (patch)
tree655315c6563471758f877b6c731d8d66befa3081 /lib
parent8372721d028c10c9819bc3fdc53ea5dabbb862ab (diff)
Handler::Releases: Ingore some fields when the patch status is set
Diffstat (limited to 'lib')
-rw-r--r--lib/VNDB/Handler/Releases.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/VNDB/Handler/Releases.pm b/lib/VNDB/Handler/Releases.pm
index 58c423ff..447bfef6 100644
--- a/lib/VNDB/Handler/Releases.pm
+++ b/lib/VNDB/Handler/Releases.pm
@@ -329,7 +329,9 @@ sub edit {
$new_vn = [ map { /^([0-9]+)/ ? $1 : () } split /\|\|\|/, $frm->{vn} ];
$frm->{platforms} = [ grep $_, @{$frm->{platforms}} ];
$frm->{$_} = $frm->{$_} ? 1 : 0 for (qw|patch freeware doujin|);
- $frm->{doujin} = 0 if $frm->{patch};
+
+ # reset some fields when the patch flag is set
+ $frm->{doujin} = $frm->{resolution} = $frm->{voiced} = $frm->{ani_story} = $frm->{ani_ero} = 0 if $frm->{patch};
my $same = $rid &&
(join(',', sort @{$b4{platforms}}) eq join(',', sort @{$frm->{platforms}})) &&