Bug 12001: (QA follow-up) Fix showing links to items on boraccount page
authorJosef Moravec <josef.moravec@gmail.com>
Mon, 19 Feb 2018 22:43:32 +0000 (22:43 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 23 Feb 2018 13:57:30 +0000 (10:57 -0300)
Test plan:
Go to the Fines -> Account page of a patron with fees linked to items
--> without patch there is no link to related item
--> with patch the link is presented in description column

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
members/boraccount.pl

index 22fc699..4abb571 100755 (executable)
@@ -106,7 +106,7 @@ while ( my $line = $accts->next ) {
 
     if ( $accountline->{itemnumber} ) {
         # Because we will not have access to the object from the template
-        $accountline->{item} = { biblionumber => $line->item->biblionumber, };
+        $accountline->{item} = $line->item;
     }
     push @accountlines, $accountline;
 }