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

SF.net SVN: ledger-smb:[6828] trunk/LedgerSMB/Template/DB.pm



Revision: 6828
          http://sourceforge.net/p/ledger-smb/code/6828
Author:   einhverfr
Date:     2014-02-10 10:03:28 +0000 (Mon, 10 Feb 2014)
Log Message:
-----------
Allowing adding missing templates

Modified Paths:
--------------
    trunk/LedgerSMB/Template/DB.pm

Modified: trunk/LedgerSMB/Template/DB.pm
===================================================================
--- trunk/LedgerSMB/Template/DB.pm	2014-02-10 10:01:12 UTC (rev 6827)
+++ trunk/LedgerSMB/Template/DB.pm	2014-02-10 10:03:28 UTC (rev 6828)
@@ -110,6 +110,7 @@
          procname => 'template__get',
          args => [$args{template_name}, $args{language_code}, $args{format}]
     );
+    return {} unless $temp->{format};  # allows editing of blank templates
     return __PACKAGE__->new(%$temp);
 }
 

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


------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
_______________________________________________
Ledger-smb-commits mailing list
..hidden..
https://lists.sourceforge.net/lists/listinfo/ledger-smb-commits