Re: [Koha-devel] DBIx query or

2020-11-05 Thread Fridolin SOMERS
A OK thanks a lot for the explanation ;) Le 03/11/2020 à 11:30, Jonathan Druart a écrit : Hi Frido, On 26407 we must use an arrayref as we searched on the same attribute, but otherwise both syntax are identical. Koha::Patrons->search({ -or => { surname => 'koha', firstname => 'koha' } })

Re: [Koha-devel] DBIx query or

2020-11-03 Thread Jonathan Druart
Hi Frido, On 26407 we must use an arrayref as we searched on the same attribute, but otherwise both syntax are identical. Koha::Patrons->search({ -or => { surname => 'koha', firstname => 'koha' } }) Koha::Patrons->search({ -or => [ surname => 'koha', firstname => 'koha' ] }) Koha::Patrons->search

[Koha-devel] DBIx query or

2020-11-03 Thread Fridolin SOMERS
Hi, I recently changed a call on Koha::Biblios->search() to use an arrayref instead of hashref : https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26407 But I see there are both arrayref of hashref existing in code for "-or" query. What is the difference ? Is there a way we should c