lp1926971 augment holds for patrons print template
authorJason Etheridge <jason@EquinoxInitiative.org>
Mon, 3 May 2021 15:13:08 +0000 (11:13 -0400)
committerGalen Charlton <gmc@equinoxOLI.org>
Thu, 12 Aug 2021 21:01:19 +0000 (17:01 -0400)
with patron data, to support what the template editor preview is allowing

Signed-off-by: Jason Etheridge <jason@EquinoxInitiative.org>
Signed-off-by: Josh Stompro <stompro@stompro.org>
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>

Open-ILS/web/js/ui/default/staff/circ/patron/holds.js

index 058c02d..bab8aa0 100644 (file)
@@ -129,7 +129,7 @@ function($scope,  $q,  $routeParams,  egCore,  egUser,  patronSvc,
         egCore.print.print({
             context : 'receipt', 
             template : 'holds_for_patron', 
-            scope : {holds : holds}
+            scope : {patron : egCore.idl.toHash(patronSvc.current), holds : holds}
         });
     }