Bugzilla – Attachment 166317 Details for
Bug 36758
We should notify an assignee when they are assigned a ticket
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 36758: Add librarian object
Bug-36758-Add-librarian-object.patch (text/plain), 1.30 KB, created by
Martin Renvoize (ashimema)
on 2024-05-07 17:00:08 UTC
(
hide
)
Description:
Bug 36758: Add librarian object
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2024-05-07 17:00:08 UTC
Size:
1.30 KB
patch
obsolete
>From e7ced629f556f7460911aa548ceef9cfb1ec6533 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Tue, 7 May 2024 17:48:24 +0100 >Subject: [PATCH] Bug 36758: Add librarian object > >This patch adds a 'librarian' object fetch to >C4::Letters::GetPreparedLetter when a called passes the 'want_librarian' >flag. > >This allows for the notice to take full advantage of the patron object >for that librarian rather than requireing old non-TT syntax for this >feature. > >Test plan >1) We use the 'librarian' object in the new TICKET_ASSIGNED default > notice, use the next patch to test that the librarian title is > correctly substituted into the notice. >--- > C4/Letters.pm | 3 +++ > 1 file changed, 3 insertions(+) > >diff --git a/C4/Letters.pm b/C4/Letters.pm >index dc1db2190b0..0fd166ee68d 100644 >--- a/C4/Letters.pm >+++ b/C4/Letters.pm >@@ -618,6 +618,9 @@ sub GetPreparedLetter { > or carp( "ERROR: nothing to substitute - all of 'objects', 'tables', 'loops' and 'substitute' are empty" ), > return; > my $want_librarian = $params{want_librarian}; >+ if ($want_librarian) { >+ $objects->{librarian} = Koha::Patrons->find( C4::Context->userenv->{number} ); >+ } > > # Best guess at language 'default' notice is written for include handling > if ( $lang eq 'default' ) { >-- >2.45.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 36758
:
166316
|
166317
|
166318
|
166319
|
166390
|
166391
|
166392
|
166393
|
169238
|
169239
|
169240
|
169241
|
170226