Bugzilla – Attachment 144731 Details for
Bug 32500
OPAC_REG_VERIFY has too many options for "Message body"
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 32500: Show only relevant message body option for OPAC_REG_VERIFY
Bug-32500-Show-only-relevant-message-body-option-f.patch (text/plain), 1.51 KB, created by
David Cook
on 2022-12-20 04:27:33 UTC
(
hide
)
Description:
Bug 32500: Show only relevant message body option for OPAC_REG_VERIFY
Filename:
MIME Type:
Creator:
David Cook
Created:
2022-12-20 04:27:33 UTC
Size:
1.51 KB
patch
obsolete
>From 7407f1745e9bd9dffaaff349f5f58c8780b6e6ef Mon Sep 17 00:00:00 2001 >From: David Cook <dcook@prosentient.com.au> >Date: Tue, 20 Dec 2022 04:17:33 +0000 >Subject: [PATCH] Bug 32500: Show only relevant message body option for > OPAC_REG_VERIFY > >This patch changes the "Message body" options for the >OPAC_REG_VERIFY notice so that only the relevant >"borrower_modifications.verification_token" >appears as an option. > >Tables like branches, biblio, biblioitems, items, borrowers, >and issues aren't passed to OPAC_REG_VERIFY at processing time. >The only table passed is "borrower_modifications", and only the >token is the relevant field there. >--- > tools/letter.pl | 13 +++++++++++++ > 1 file changed, 13 insertions(+) > >diff --git a/tools/letter.pl b/tools/letter.pl >index d709b2d6e9..bc8e562139 100755 >--- a/tools/letter.pl >+++ b/tools/letter.pl >@@ -283,6 +283,19 @@ sub add_form { > push @{$field_selection}, add_fields('problem_reports'); > } > >+ if ( $module eq 'members' and $code and $code eq 'OPAC_REG_VERIFY' ){ >+ $field_selection = [ >+ { >+ 'text' => '---BORROWER_MODIFICATIONS---', >+ 'value' => '' >+ }, >+ { >+ 'value' => 'borrower_modifications.verification_token', >+ 'text' => 'borrower_modifications.verification_token' >+ }, >+ ]; >+ } >+ > if ( $module eq 'ill' ) { > push @{$field_selection}, add_fields('illrequests'); > } >-- >2.30.2
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 32500
:
144731
|
144846