Bug 34639: Restore order_by

To test:
1. prove t/db_dependent/Koha/Item.t
2. Observe success

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Aleisha Amohia <aleishaamohia@hotmail.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Lari Taskula 2023-08-29 19:14:56 +00:00 committed by Tomas Cohen Arazi
parent 74b205649b
commit 066c0b3e0d
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F

View file

@ -984,6 +984,7 @@ __PACKAGE__->has_many(
"$args->{foreign_alias}.datecancelled" => undef,
};
},
{ order_by => [ { -desc => 'datesent' }, { -asc => 'daterequested' } ] }
);
# Relationship with bundled items