Empty ticket array when query parameter is omitted
Ticket.find(:all, :params => { :project_id =>
MY_PROJECT_ID })
returns an empty array => []
whereas
Ticket.find(:all, :params => { :project_id =>
MY_PROJECT_ID, :q => "all" })
returns all tickets.
Is this a bug or intended behaviour?
Cheers
Stefan
Discussions are closed to public comments.
If you need help with Lighthouse please
start a new discussion.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
1 Posted by Rick on 11 Feb, 2009 06:45 PM
Neither, I'd call it surprising behavior. The ticket API uses the same controller logic for both browser and api requests. I decided to remove this behavior and only use the
:q
parameter on API requests. It's committed, but not deployed yet.2 Posted by Rick on 11 Feb, 2009 08:20 PM
It's deployed now.
Rick closed this discussion on 11 Feb, 2009 08:20 PM.