ChiliProject is not maintained anymore. Please be advised that there will be no more updates.

We do not recommend that you setup new ChiliProject instances and we urge all existing users to migrate their data to a maintained system, e.g. Redmine. We will provide a migration script later. In the meantime, you can use the instructions by Christian Daehn.

status_allowed method on issue_status returns duplicates (Bug #643)


Added by Romano Licker at 2011-09-28 01:56 pm.


Status:Open Start date:2011-09-28
Priority:Normal Due date:
Assignee:- % Done:

0%

Category:-
Target version:-
Remote issue URL: Affected version:

Description

The methods "new_statuses_allowed_to" and "find_new_statuses_allowed_to" return duplicates.
Since the methods take an array of roles as a parameter and different roles can have the same status
the method will return the allowed statuses more than once.

Applying "uniq" on the result array fixes the problem.


History

Also available in: Atom PDF