diff --git a/lib/CXGN/BrAPI/v2/Studies.pm b/lib/CXGN/BrAPI/v2/Studies.pm index 6c6e7e1ef3..cbeb6b3d2f 100644 --- a/lib/CXGN/BrAPI/v2/Studies.pm +++ b/lib/CXGN/BrAPI/v2/Studies.pm @@ -340,12 +340,13 @@ sub store { return { error => $references->{'error'} }; } } - - } my $data_out; my $total_count=0; + # This is servicing a POST request, make sure pagination returns all created objects. + $page_size = scalar(@study_dbids); + $page = 0; if (scalar(@study_dbids)>0){ my $dbh = $c->dbc->dbh(); my $bs = CXGN::BreederSearch->new( { dbh=>$dbh, dbname=>$c->config->{dbname}, } );