summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2015-01-25 11:49:23 +0100
committerYorhel <git@yorhel.nl>2015-01-25 11:49:50 +0100
commitf7232a44e53692eda370b55cf64a03ededcfe40a (patch)
treebcd41ad4d6c5927b8c50bab6c11408421cc03ed7
parentfd29f1f5aa485651f70610b8d8882b05f5dd4406 (diff)
staff: Fix adding/editing staff with >10 aliasses
Another bug related to query limits. It's become a common theme now.
-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 caf4b2b1..3fe76c07 100644
--- a/lib/VNDB/Handler/VNEdit.pm
+++ b/lib/VNDB/Handler/VNEdit.pm
@@ -139,7 +139,7 @@ sub edit {
# ensure submitted alias IDs exist within database
my @alist = map $_->{aid}, @$raw_c, @$raw_s;
- my %staff = @alist ? map +($_->{aid} => 1), @{$self->dbStaffGet(aid => \@alist)} : ();
+ my %staff = @alist ? map +($_->{aid} => 1), @{$self->dbStaffGet(aid => \@alist, results => 200)} : ();
return unless %staff; # exit from the eval block if staff list is empty
# check for duplicate credits