From 609c11afc484f2404f8008b03ae4c4eebf085ff5 Mon Sep 17 00:00:00 2001 From: David Cook Date: Tue, 21 Apr 2026 04:33:18 +0000 Subject: [PATCH] Bug 40659: (follow-up) include substitutions in the possible options for template Signed-off-by: David Cook Signed-off-by: Andrew Fuerste Henry Signed-off-by: Lucas Gass --- tools/letter.pl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/letter.pl b/tools/letter.pl index 8cce32b8f5..76f1fe259c 100755 --- a/tools/letter.pl +++ b/tools/letter.pl @@ -250,6 +250,11 @@ sub add_form { ); my $field_selection; + + if ( $module eq 'members' and $code and $code eq 'VIRTUALCARD' ) { + push @{$field_selection}, { value => '', text => '---VIRTUALCARD---' }, + { value => 'my_image', text => 'my_image' }, { value => 'my_barcode', text => 'my_barcode' }; + } push @{$field_selection}, add_fields('branches'); if ( $module eq 'reserves' ) { push @{$field_selection}, add_fields( 'borrowers', 'reserves', 'biblio', 'biblioitems', 'items' );