-
Notifications
You must be signed in to change notification settings - Fork 183
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
retrieveAll without any $params set hits limit #172
Comments
@rogermartensson I came across your ticket by chance 😉 I think it concerns rather the plugin |
I'm closing my issue since it's too old. |
22 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm using a plugin (redissue) that uses Project::getIdByname() to retrieve a Id on a project in Redmine.
But I am hitting a limit on redmine since I have many projects. This limit seems to be 25 entries.
getIdByName() calls listing(). Listing() calls all() if forced or if $this->projects doesn't exists.
all() calls AbstractApi::retrieveAll() with $params set to an empty array when called from listing().
This make retrieveAll() to a get() which seems to retrieve the limit of 25 entries.
If I in all() insert a line like:
$params['limit']=300;
Then it seems to work. Not that it uses the supplied limit but skips running the single get() in the beginning of the retrieveAll() function.
The text was updated successfully, but these errors were encountered: