@@ -, +, @@ --- Koha/RotatingCollection.pm | 3 ++- Koha/RotatingCollection/Trackings.pm | 4 ++++ Koha/RotatingCollections.pm | 4 ++++ 3 files changed, 10 insertions(+), 1 deletion(-) --- a/Koha/RotatingCollection.pm +++ a/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 ) { --- a/Koha/RotatingCollection/Trackings.pm +++ a/Koha/RotatingCollection/Trackings.pm @@ -45,6 +45,10 @@ sub _type { return 'CollectionsTracking'; } +=head3 object_class + +=cut + sub object_class { return 'Koha::RotatingCollection::Tracking'; } --- a/Koha/RotatingCollections.pm +++ a/Koha/RotatingCollections.pm @@ -45,6 +45,10 @@ sub _type { return 'Collection'; } +=head3 object_class + +=cut + sub object_class { return 'Koha::RotatingCollection'; } --