From c06faf11a84fe857c2d463f7500d7fb77b960a50 Mon Sep 17 00:00:00 2001 From: Josef Moravec Date: Wed, 13 Dec 2017 06:43:44 +0000 Subject: [PATCH] Bug 18606: (Follow-up) Make QA tools happy Signed-off-by: Kyle M Hall --- Koha/RotatingCollection.pm | 3 ++- Koha/RotatingCollection/Trackings.pm | 4 ++++ Koha/RotatingCollections.pm | 4 ++++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/Koha/RotatingCollection.pm b/Koha/RotatingCollection.pm index 7e4c2ef..51e7b72 100644 --- a/Koha/RotatingCollection.pm +++ b/Koha/RotatingCollection.pm @@ -136,7 +136,8 @@ sub transfer { $self->colBranchcode( $library->branchcode )->store; - my $from = C4::Context->userenv->{'branch'} if C4::Context->userenv; + my $from; + $from = C4::Context->userenv->{'branch'} if C4::Context->userenv; my $items = $self->items; while ( my $item = $items->next ) { diff --git a/Koha/RotatingCollection/Trackings.pm b/Koha/RotatingCollection/Trackings.pm index 0c6fe32..bcd0b80 100644 --- a/Koha/RotatingCollection/Trackings.pm +++ b/Koha/RotatingCollection/Trackings.pm @@ -45,6 +45,10 @@ sub _type { return 'CollectionsTracking'; } +=head3 object_class + +=cut + sub object_class { return 'Koha::RotatingCollection::Tracking'; } diff --git a/Koha/RotatingCollections.pm b/Koha/RotatingCollections.pm index 255930f..a0e9914 100644 --- a/Koha/RotatingCollections.pm +++ b/Koha/RotatingCollections.pm @@ -45,6 +45,10 @@ sub _type { return 'Collection'; } +=head3 object_class + +=cut + sub object_class { return 'Koha::RotatingCollection'; } -- 2.10.2