Skip to content

retrieveAll without any $params set hits limit #172

Closed
@rogermartensson

Description

@rogermartensson

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions