diff options
author | Yorhel <git@yorhel.nl> | 2020-06-09 13:14:50 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2020-06-09 13:14:52 +0200 |
commit | b47afa655a01ec93f09b1e53254fd9b666a33f6d (patch) | |
tree | 6f6c51f511322c33d643548ee6c79311dfaa31f6 | |
parent | 1e83c2ad0ee99b8ace40af70aedf17a3ec41b205 (diff) |
Release::Edit: Reset ani_ero when minage != 18
Fixes https://vndb.org/r72279.3
-rw-r--r-- | lib/VNWeb/Releases/Edit.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VNWeb/Releases/Edit.pm b/lib/VNWeb/Releases/Edit.pm index a2326207..a315d96b 100644 --- a/lib/VNWeb/Releases/Edit.pm +++ b/lib/VNWeb/Releases/Edit.pm @@ -142,7 +142,7 @@ elm_api ReleaseEdit => $FORM_OUT, $FORM_IN, sub { } $data->{doujin} = $data->{voiced} = $data->{ani_story} = $data->{ani_ero} = 0 if $data->{patch}; $data->{resolution} = 'unknown' if $data->{patch}; - $data->{uncensored} = 0 if $data->{minage} != 18; + $data->{uncensored} = $data->{ani_ero} = 0 if $data->{minage} != 18; $_->{qty} = $MEDIUM{$_->{medium}}{qty} ? $_->{qty}||1 : 0 for $data->{media}->@*; $data->{notes} = bb_subst_links $data->{notes}; die "No VNs selected" if !$data->{vn}->@*; |