[Koha-bugs] [Bug 32107] Send $self to Plugins->call and call discard_changes inside

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Nov 4 10:28:59 CET 2022


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32107

--- Comment #2 from Marcel de Rooy <m.de.rooy at rijksmuseum.nl> ---
Adding a diff here from 31894

>From 59ff56f2b77ed9b529e886b40bc2da63fb929a81 Mon Sep 17 00:00:00 2001
From: Marcel de Rooy <m.de.rooy at rijksmuseum.nl>
Date: Tue, 25 Oct 2022 14:45:57 +0000
Subject: [PATCH] Bug 31894: (QA follow-up) Remove unneeded get_from_storage
 calls
Content-Type: text/plain; charset=utf-8

Test plan:
Run test again.

Signed-off-by: Marcel de Rooy <m.de.rooy at rijksmuseum.nl>
---
 Koha/Hold.pm | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/Koha/Hold.pm b/Koha/Hold.pm
index 8379e3f718..36b434ed2b 100644
--- a/Koha/Hold.pm
+++ b/Koha/Hold.pm
@@ -204,7 +204,7 @@ sub set_transfer {
         'after_hold_action',
         {
             action  => 'transfer',
-            payload => { hold => $self->get_from_storage }
+            payload => { hold => $self }
         }
     );

@@ -269,7 +269,7 @@ sub set_waiting {
         'after_hold_action',
         {
             action  => 'waiting',
-            payload => { hold => $self->get_from_storage }
+            payload => { hold => $self }
         }
     );

@@ -365,7 +365,7 @@ sub set_processing {
         'after_hold_action',
         {
             action  => 'processing',
-            payload => { hold => $self->get_from_storage }
+            payload => { hold => $self }
         }
     );

-- 
2.30.2

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.


More information about the Koha-bugs mailing list