[Koha-patches] [PATCH] Incremental fix for Bug 5462, Fix variable names so we dont break template::toolkit
Owen Leonard
oleonard at myacpl.org
Thu Mar 31 18:19:05 CEST 2011
---
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
More information about the Koha-patches
mailing list