https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38122 --- Comment #24 from Jonathan Druart <jonathan.druart@gmail.com> --- (In reply to Baptiste Wojtkowski (bwoj) from comment #23)
Hi, Is the provided patch supposed to be working or is is just an illustration of what we should do ? I had to tweak a lot to have it working, and I still cannot have it working well I think.
It is supposed to work. Which problems did you face?
I can provide my changes but there is one point I don't get, why do we order by Id at the end of the group search ? I cannot find the place where it is ordered by group after this.
order_by => [ \[ sprintf( "field(me.itemnumber, %s)", join( ', ', map { qq{'$_'} } @item_ids ) ) ] ]
We are ordering by itemnumbers, but using the array @item_ids that defines a specific order. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.