Revert "Bug 18179: Update existing calls"
authorKyle M Hall <kyle@bywatersolutions.com>
Fri, 28 Apr 2017 16:48:56 +0000 (12:48 -0400)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 28 Apr 2017 16:48:56 +0000 (12:48 -0400)
This reverts commit 2a2b9739117e74232c9a7abde516b1c436d4bad3.

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
members/memberentry.pl
members/moremember.pl
members/pay.pl
opac/opac-user.pl

index c13faa5..768b163 100755 (executable)
@@ -753,7 +753,7 @@ $template->param( csrf_token =>
 
 # HouseboundModule data
 $template->param(
-    housebound_role  => scalar Koha::Patron::HouseboundRoles->find($borrowernumber),
+    housebound_role  => Koha::Patron::HouseboundRoles->find($borrowernumber),
 );
 
 if(defined($data{'flags'})){
index 20044a6..2ab8174 100755 (executable)
@@ -347,7 +347,7 @@ $template->param(
     is_child        => ($category_type eq 'C'),
     samebranch      => $samebranch,
     quickslip       => $quickslip,
-    housebound_role => scalar $patron->housebound_role,
+    housebound_role => $patron->housebound_role,
     privacy_guarantor_checkouts => $data->{'privacy_guarantor_checkouts'},
     AutoResumeSuspendedHolds => C4::Context->preference('AutoResumeSuspendedHolds'),
     SuspendHoldsIntranet => C4::Context->preference('SuspendHoldsIntranet'),
index 3400ee0..2e25eef 100755 (executable)
@@ -94,7 +94,7 @@ if ($writeoff_all) {
     Koha::Account->new( { patron_id => $borrowernumber } )->pay(
         {
             amount     => $amount,
-            lines      => [ scalar Koha::Account::Lines->find($accountlines_id) ],
+            lines      => [Koha::Account::Lines->find($accountlines_id)],
             type       => 'writeoff',
             note       => $payment_note,
             library_id => $branch,
@@ -208,7 +208,7 @@ sub writeoff_all {
             Koha::Account->new( { patron_id => $borrowernumber } )->pay(
                 {
                     amount => $amount,
-                    lines  => [ scalar Koha::Account::Lines->find($accountlines_id) ],
+                    lines  => [ Koha::Account::Lines->find($accountlines_id) ],
                     type   => 'writeoff',
                     note   => $payment_note,
                     library_id => $branch,
index b8714b1..6ae7b9a 100755 (executable)
@@ -343,7 +343,7 @@ if (   C4::Context->preference('AllowPatronToSetCheckoutsVisibilityForGuarantor'
 }
 
 $template->param(
-    borrower                 => scalar Koha::Patrons->find($borrowernumber),
+    borrower                 => Koha::Patrons->find($borrowernumber),
     patron_messages          => $patron_messages,
     opacnote                 => $borr->{opacnote},
     patronupdate             => $patronupdate,