[Koha-patches] [PATCH] Fix for Bug 6608 - Date-pickers broken on guided reports pages

Owen Leonard oleonard at myacpl.org
Tue Jul 19 21:44:08 CEST 2011


Template variable scope errors.
---
 .../prog/en/modules/reports/dictionary.tt          |    4 ++--
 .../en/modules/reports/guided_reports_start.tt     |    6 +++---
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/dictionary.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/dictionary.tt
index c4a8da5..f6d48ba 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/dictionary.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/dictionary.tt
@@ -214,7 +214,7 @@
 <script type="text/javascript">                            
 Calendar.setup({             
 inputField     : "[% column.name %]_start_value",    
-ifFormat       : "[% column.DHTMLcalendar_dateformat %]",
+ifFormat       : "[% DHTMLcalendar_dateformat %]",
 button         : "buttonfrom1",                            
 align          : "Tl"                  
 });
@@ -230,7 +230,7 @@ align          : "Tl"
 <script type="text/javascript">                            
 Calendar.setup({             
 inputField     : "[% column.name %]_end_value",    
-ifFormat       : "[% column.DHTMLcalendar_dateformat %]",
+ifFormat       : "[% DHTMLcalendar_dateformat %]",
 button         : "buttonfrom2",
 align          : "Tl"                  
 });
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt
index 04cfb43..d478926 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt
@@ -331,7 +331,7 @@ canned reports and writing custom SQL reports.</p>
             <script type="text/javascript">   
             Calendar.setup({  
             inputField     : "[% criteri.name %]_value",
-            ifFormat       : "[% criteri.DHTMLcalendar_dateformat %]",
+            ifFormat       : "[% DHTMLcalendar_dateformat %]",
             button         : "buttonfrom[% criteri.name %]",
             align          : "Tl" 
             });     
@@ -354,7 +354,7 @@ canned reports and writing custom SQL reports.</p>
             <script type="text/javascript">   
                 Calendar.setup({  
                 inputField     : "from_[% criteri.name %]_value",
-                ifFormat       : "[% criteri.DHTMLcalendar_dateformat %]",
+                ifFormat       : "[% DHTMLcalendar_dateformat %]",
                 button         : "buttonfromfrom_[% criteri.name %]",
                 align          : "Tl" 
                 });     
@@ -365,7 +365,7 @@ canned reports and writing custom SQL reports.</p>
             <script type="text/javascript">   
                 Calendar.setup({  
                 inputField     : "to_[% criteri.name %]_value",
-                ifFormat       : "[% criteri.DHTMLcalendar_dateformat %]",
+                ifFormat       : "[% DHTMLcalendar_dateformat %]",
                 button         : "buttonfromto_[% criteri.name %]",
                 align          : "Tl" 
                 });     
-- 
1.7.3



More information about the Koha-patches mailing list