The Gitlab instance will be restarted on Monday April 28th at 2AM. There will be a short interruption of service.

Skip to content
Snippets Groups Projects
Commit 63b19c64 authored by Demian Katz's avatar Demian Katz
Browse files

Merge pull request #592 from EreMaijala/primo-fix

Fixed the broken start index calculation when requesting records from…
parents 11019d5f ca3d4f5d
No related merge requests found
......@@ -303,10 +303,7 @@ class Connector implements \Zend\Log\LoggerAwareInterface
}
// QUERYSTRING: indx (start record)
$recordStart = $args["pageNumber"];
if ($recordStart != 1) {
$recordStart = ($recordStart * 10) + 1;
}
$recordStart = ($args["pageNumber"] - 1) * $args['limit'] + 1;
$qs[] = "indx=$recordStart";
// TODO: put bulksize in conf file? set a reasonable cap...
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment