Empty ticket array when query parameter is omitted

Stefan Schüßler's Avatar

Stefan Schüßler

11 Feb, 2009 12:27 PM

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

  1. 1 Posted by Rick on 11 Feb, 2009 06:45 PM

    Rick's Avatar

    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. 2 Posted by Rick on 11 Feb, 2009 08:20 PM

    Rick's Avatar

    It's deployed now.

  3. Rick closed this discussion on 11 Feb, 2009 08:20 PM.

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