summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2015-09-20 20:52:00 +0200
committerYorhel <git@yorhel.nl>2015-09-20 20:52:00 +0200
commit3070caa6043101bae8fddc297c4152a2f3832b29 (patch)
tree0dc1909d27841ddb0c7c6f9be27d2da9b5ed4370
parent4a8c274379a5693e0d667d9011a9963319d267a2 (diff)
Handler::Staff: Fix validation error on primary alias ID
It can be 0 when creating a new alias as primary name.
-rw-r--r--lib/VNDB/Handler/Staff.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VNDB/Handler/Staff.pm b/lib/VNDB/Handler/Staff.pm
index 753a1ef8..27d9de66 100644
--- a/lib/VNDB/Handler/Staff.pm
+++ b/lib/VNDB/Handler/Staff.pm
@@ -201,7 +201,7 @@ sub edit {
$frm = $self->formValidate (
{ post => 'name', maxlength => 200 },
{ post => 'original', required => 0, maxlength => 200, default => '' },
- { post => 'primary', required => 0, template => 'id', default => 0 },
+ { post => 'primary', required => 0, template => 'uint', default => 0 },
{ post => 'desc', required => 0, maxlength => 5000, default => '' },
{ post => 'gender', required => 0, default => 'unknown', enum => [qw|unknown m f|] },
{ post => 'lang', enum => $self->{languages} },