Actions
Defect #11545
closedOverwriting existing method Issue.open
Start date:
Due date:
% Done:
0%
Estimated time:
Resolution:
Fixed
Affected version:
Description
Try
Project.first.issues.open => ArgumentError: wrong number of arguments (0 for 1)
Project.first.issues.open('public') => Errno::EACCES: Permission denied - public
From log:
Creating scope :open. Overwriting existing method Issue.open.
And others:
Creating scope :active. Overwriting existing method User.active.
Creating scope :open. Overwriting existing method Version.open.
etc..
Thanks for resolve
(workaround: Project.first.issues.visible.open)
Petr
Files
Updated by Jean-Philippe Lang over 12 years ago
- Status changed from New to Confirmed
- Priority changed from Urgent to Normal
Updated by Alexander Markelov over 12 years ago
I hope the following patch will help.
Updated by Jean-Philippe Lang over 12 years ago
- Status changed from Confirmed to Closed
- Assignee set to Jean-Philippe Lang
- Target version set to 2.1.0
- Resolution set to Fixed
Patch committed in r10199 with a test. Thanks for the fix.
Actions