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

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



Revision: 4776
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=4776&view=rev
Author:   einhverfr
Date:     2012-05-25 05:42:42 +0000 (Fri, 25 May 2012)
Log Message:
-----------
Fixed error loading Template/ODS.pm
Fixed button disabling logic (my bad, I got it backwards whether eval returns true or false on success)

Modified Paths:
--------------
    branches/1.3/Changelog
    branches/1.3/LedgerSMB/Template/ODS.pm
    branches/1.3/bin/am.pl
    branches/1.3/bin/rp.pl

Modified: branches/1.3/Changelog
===================================================================
--- branches/1.3/Changelog	2012-05-25 05:11:08 UTC (rev 4775)
+++ branches/1.3/Changelog	2012-05-25 05:42:42 UTC (rev 4776)
@@ -11,6 +11,8 @@
 * Approved recon reports no longer show invalid balance info (Chris T,3518283)
 * CSS directory is now configurable (Chris T, 3516730, h/t Robert C)
 * Corrected cannot delete accounts (Chris T, 3529383, h/t David M)
+* Fixed ODS output broken due to missing export (Chris T)
+* Fixed button disable inverted (Chris T)
 
 David M is David Mora
 Robert C is Robert James Clay

Modified: branches/1.3/LedgerSMB/Template/ODS.pm
===================================================================
--- branches/1.3/LedgerSMB/Template/ODS.pm	2012-05-25 05:11:08 UTC (rev 4775)
+++ branches/1.3/LedgerSMB/Template/ODS.pm	2012-05-25 05:42:42 UTC (rev 4776)
@@ -53,6 +53,7 @@
 use Template;
 use XML::Twig;
 use OpenOffice::OODoc;
+use OpenOffice::OODoc::Styles;
 use LedgerSMB::Template::TTI18N;
 use LedgerSMB::Sysconfig;
 

Modified: branches/1.3/bin/am.pl
===================================================================
--- branches/1.3/bin/am.pl	2012-05-25 05:11:08 UTC (rev 4775)
+++ branches/1.3/bin/am.pl	2012-05-25 05:42:42 UTC (rev 4776)
@@ -263,8 +263,8 @@
 
     my %can_load;
     $can_load{CSV} = 1;
-    $can_load{XLS} = ! eval { require Excel::Template::Plus };
-    $can_load{ODS} = ! eval { require OpenOffice::OODoc };
+    $can_load{XLS} = eval { require Excel::Template::Plus };
+    $can_load{ODS} = eval { require OpenOffice::OODoc };
 
     my @buttons;
     for my $type (qw(CSV XLS ODS)) {

Modified: branches/1.3/bin/rp.pl
===================================================================
--- branches/1.3/bin/rp.pl	2012-05-25 05:11:08 UTC (rev 4775)
+++ branches/1.3/bin/rp.pl	2012-05-25 05:42:42 UTC (rev 4776)
@@ -833,8 +833,8 @@
 
     my %can_load;
     $can_load{CSV} = 1;
-    $can_load{XLS} = ! eval { require Excel::Template::Plus };
-    $can_load{ODS} = ! eval { require OpenOffice::OODoc };
+    $can_load{XLS} =  eval { require Excel::Template::Plus };
+    $can_load{ODS} =  eval { require OpenOffice::OODoc };
 
     my @buttons;
     for my $type (qw(CSV XLS ODS)) {

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