summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2009-05-31 09:40:36 +0200
committerYorhel <git@yorhel.nl>2009-05-31 09:40:36 +0200
commit055a05ea4d7ec0956a36e18bc79d46aa54b2ab9c (patch)
tree1a3e5a330b2df275f6e846c1ec450370d3c42d7a /lib
parent1253d602e9c8c5ef0e8c49c61465332f758e9dd9 (diff)
Ignore doujin flag for patch release types
Diffstat (limited to 'lib')
-rw-r--r--lib/VNDB/Handler/Releases.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/VNDB/Handler/Releases.pm b/lib/VNDB/Handler/Releases.pm
index 1f2b2ac6..3933217a 100644
--- a/lib/VNDB/Handler/Releases.pm
+++ b/lib/VNDB/Handler/Releases.pm
@@ -134,7 +134,7 @@ sub _infotable {
Tr ++$i % 2 ? (class => 'odd') : ();
td 'Publication';
- td ''.($r->{freeware} ? 'Freeware' : 'Non-free').', '.($r->{doujin} ? 'doujin' : 'commercial');
+ td join ', ', $r->{freeware} ? 'Freeware' : 'Non-free', $r->{patch} ? () : $r->{doujin} ? 'doujin' : 'commercial';
end;
if(@{$r->{platforms}}) {
@@ -322,6 +322,7 @@ sub edit {
my $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};
return $self->resRedirect("/r$rid", 'post')
if $rid &&