summaryrefslogtreecommitdiff
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
parent1253d602e9c8c5ef0e8c49c61465332f758e9dd9 (diff)
Ignore doujin flag for patch release types
-rw-r--r--data/docs/32
-rw-r--r--lib/VNDB/Handler/Releases.pm3
2 files changed, 3 insertions, 2 deletions
diff --git a/data/docs/3 b/data/docs/3
index 215ac74f..6ec7bb14 100644
--- a/data/docs/3
+++ b/data/docs/3
@@ -33,7 +33,7 @@
Check if this box if the game is downloadable (or otherwise distributed) at no cost.
</dd><dt>Doujin</dt><dd>
Published by a doujin circle, amateur group or individual, as opposed to a legal
- entity such as a company.
+ entity such as a company. This field is ignored when the release type is set to patch.
</dd><dt>Title (romaji)</dt><dd>
The name of the release, in the Latin character set (using Romanisation or translation)
</dd><dt>Original title</dt><dd>
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 &&