[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SF.net SVN: ledger-smb:[5864] branches/1.3



Revision: 5864
          http://sourceforge.net/p/ledger-smb/code/5864
Author:   einhverfr
Date:     2013-05-24 09:48:46 +0000 (Fri, 24 May 2013)
Log Message:
-----------
Merging fix in for stringified code references in LateX templates

Modified Paths:
--------------
    branches/1.3/Changelog
    branches/1.3/LedgerSMB/Template/LaTeX.pm

Modified: branches/1.3/Changelog
===================================================================
--- branches/1.3/Changelog	2013-05-24 09:10:51 UTC (rev 5863)
+++ branches/1.3/Changelog	2013-05-24 09:48:46 UTC (rev 5864)
@@ -16,6 +16,7 @@
 * Fixed default_reportable not respected for invoices (Chris T, 799)
 * Fixed dropdowns not affecting date range in tax reports (Chris T, 811)
 * Added missing taxincluded handling, added script to populate (Chris T, 832)
+* Fixed code references stringified on LaTeX templates (Chris T, 843)
 
 Changelog for 1.3.32
 * Fixed em-dash handling for pdfs (Chris T)

Modified: branches/1.3/LedgerSMB/Template/LaTeX.pm
===================================================================
--- branches/1.3/LedgerSMB/Template/LaTeX.pm	2013-05-24 09:10:51 UTC (rev 5863)
+++ branches/1.3/LedgerSMB/Template/LaTeX.pm	2013-05-24 09:48:46 UTC (rev 5864)
@@ -90,7 +90,7 @@
 			$vars = $rawvars;
 		}
 		#XXX Fix escaping
-		$vars = escape($vars);
+		$vars = escape($vars) unless $type eq 'CODE';
 	} else {
 		for ( keys %{$rawvars} ) {
 			$vars->{$_} = preprocess($rawvars->{$_});

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.