summaryrefslogtreecommitdiff
path: root/lib/VNDB/Handler/VNEdit.pm
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2016-01-17 13:23:42 +0100
committerYorhel <git@yorhel.nl>2016-01-17 14:51:44 +0100
commit8e876179272ce79b0023f771be5f3842bf5ef679 (patch)
tree568bf5c3eb859d20bc6fc81c435326d21d444d51 /lib/VNDB/Handler/VNEdit.pm
parent110db705ecdfb5c89500ff8f24652bcd1e25fc45 (diff)
L10N: Intern blood_types/genders/(char|staff)_roles/discussion_boards
I definitely needed the Tie::IxHash thing for these.
Diffstat (limited to 'lib/VNDB/Handler/VNEdit.pm')
-rw-r--r--lib/VNDB/Handler/VNEdit.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VNDB/Handler/VNEdit.pm b/lib/VNDB/Handler/VNEdit.pm
index b906eafa..870f9fb8 100644
--- a/lib/VNDB/Handler/VNEdit.pm
+++ b/lib/VNDB/Handler/VNEdit.pm
@@ -122,7 +122,7 @@ sub edit {
{ post => 'img_nsfw', required => 0, default => 0 },
{ post => 'credits', required => 0, template => 'json', json_unique => ['aid','role'], json_sort => ['aid','role'], json_fields => [
{ field => 'aid', required => 1, template => 'id' },
- { field => 'role', required => 1, enum => $self->{staff_roles} },
+ { field => 'role', required => 1, enum => [ keys %{$self->{staff_roles}} ] },
{ field => 'note', required => 0, maxlength => 250, default => '' },
]},
{ post => 'seiyuu', required => 0, template => 'json', json_unique => ['aid','cid'], json_sort => ['aid','cid'], json_fields => [