Bugzilla – Attachment 3578 Details for
Bug 5462
Fix variable names so we dont break template::toolkit
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Fix for patron messaging attributes
0001-Incremental-fix-for-Bug-5462-Fix-variable-names-so-w.patch (text/plain), 2.36 KB, created by
Owen Leonard
on 2011-03-31 16:21:01 UTC
(
hide
)
Description:
Fix for patron messaging attributes
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2011-03-31 16:21:01 UTC
Size:
2.36 KB
patch
obsolete
>From 510cba38bc6cfa6362adc94057a5500e2062030f Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Thu, 31 Mar 2011 12:14:21 -0400 >Subject: [PATCH] Incremental fix for Bug 5462, Fix variable names so we dont break template::toolkit >Content-Type: text/plain; charset="utf-8" > >--- > C4/Members/Messaging.pm | 1 + > .../prog/en/includes/messaging-preference-form.inc | 12 ++++++------ > 2 files changed, 7 insertions(+), 6 deletions(-) > >diff --git a/C4/Members/Messaging.pm b/C4/Members/Messaging.pm >index 2b39f11..774f6cc 100644 >--- a/C4/Members/Messaging.pm >+++ b/C4/Members/Messaging.pm >@@ -209,6 +209,7 @@ END_SQL > $sth->execute(); > my $choices; > while ( my $row = $sth->fetchrow_hashref() ) { >+ $row->{'message_name'} =~ s/\W/\_/g; > $choices->{ $row->{'message_name'} }->{'message_attribute_id'} = $row->{'message_attribute_id'}; > $choices->{ $row->{'message_name'} }->{'message_name'} = $row->{'message_name'}; > $choices->{ $row->{'message_name'} }->{'takes_days'} = $row->{'takes_days'}; >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/messaging-preference-form.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/messaging-preference-form.inc >index 3abce71..caf98f3 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/messaging-preference-form.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/messaging-preference-form.inc >@@ -27,12 +27,12 @@ > </tr> > <!-- TMPL_LOOP name="messaging_preferences" --> > <tr> >- <td><!-- TMPL_IF NAME="Item Due" -->Item Due >- <!-- TMPL_ELSIF NAME="Advance Notice" -->Advance Notice >- <!-- TMPL_ELSIF NAME="Upcoming Events" -->Upcoming Events >- <!-- TMPL_ELSIF NAME="Hold Filled" -->Hold Filled >- <!-- TMPL_ELSIF NAME="Item Check-in" -->Item Check-in >- <!-- TMPL_ELSIF NAME="Item Checkout" -->Item Checkout >+ <td><!-- TMPL_IF NAME="Item_Due" -->Item Due >+ <!-- TMPL_ELSIF NAME="Advance_Notice" -->Advance Notice >+ <!-- TMPL_ELSIF NAME="Upcoming_Events" -->Upcoming Events >+ <!-- TMPL_ELSIF NAME="Hold_Filled" -->Hold Filled >+ <!-- TMPL_ELSIF NAME="Item_Check_in" -->Item Check-in >+ <!-- TMPL_ELSIF NAME="Item_Checkout" -->Item Checkout > <!-- TMPL_ELSE -->Unknown <!-- /TMPL_IF --></td> > <!-- TMPL_IF NAME="takes_days" --> > <td> >-- >1.7.3 >
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 5462
:
3085
|
3109
|
3159
|
3578
|
4100
|
4299