From 83c7e56984f17d6b5f4a8c41e5c48568ddab058d Mon Sep 17 00:00:00 2001 From: Alex Sassmannshausen Date: Fri, 9 Dec 2016 09:47:02 +0100 Subject: [PATCH] Bug 11897: DBIX::Class::Ordered in Stockrotationstage. * Koha/Schema/Result/Stockrotationstage.pm: Load `Ordered`, add grouping_column. Signed-off-by: Kathleen Milne --- Koha/Schema/Result/Stockrotationstage.pm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Koha/Schema/Result/Stockrotationstage.pm b/Koha/Schema/Result/Stockrotationstage.pm index 5ae86d6bf0..befa133b69 100644 --- a/Koha/Schema/Result/Stockrotationstage.pm +++ b/Koha/Schema/Result/Stockrotationstage.pm @@ -131,4 +131,9 @@ __PACKAGE__->has_many( # Created by DBIx::Class::Schema::Loader v0.07042 @ 2016-11-07 11:33:00 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:zxUwd0UdMRN03yuSlf3RmA +# We use DBIx::Class::Ordered to handle stages manipulation. +__PACKAGE__->load_components(qw( Ordered )); + +__PACKAGE__->grouping_column('rota_id'); # Our group_id + 1; -- 2.14.2