From 1984ac2d4dc9a895d73ae73fd7b26afd722c6a54 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. --- 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 5ae86d6..befa133 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.1.4