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

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



Revision: 5335
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=5335&view=rev
Author:   einhverfr
Date:     2012-12-11 09:58:04 +0000 (Tue, 11 Dec 2012)
Log Message:
-----------
Fixing parts images not accessible in template
Corrected trailing underscore handling in fs_css configuration parameter

Modified Paths:
--------------
    branches/1.3/Changelog
    branches/1.3/LedgerSMB/Sysconfig.pm
    branches/1.3/bin/io.pl

Modified: branches/1.3/Changelog
===================================================================
--- branches/1.3/Changelog	2012-12-11 09:57:24 UTC (rev 5334)
+++ branches/1.3/Changelog	2012-12-11 09:58:04 UTC (rev 5335)
@@ -12,6 +12,8 @@
 * Fixed projects not attached to customers lost 1.2-1.3 (Chris T, h/t Ario)
 * Fixed the rpm file to make a valid ledgersmb-httpd.conf (Havard S, 3593393)
 * Dropped seconds/subsecs from password expiration notice (Chris T, 3593963)
+* Fixed parts images not available from template. (Chris T, h/t Brian W)
+* Fixed fs_cssdir not handling trailing / properly (Chris T, h/t Nigel T)
 
 Chris T is Chris Travers
 Havard S is Havard Sorli

Modified: branches/1.3/LedgerSMB/Sysconfig.pm
===================================================================
--- branches/1.3/LedgerSMB/Sysconfig.pm	2012-12-11 09:57:24 UTC (rev 5334)
+++ branches/1.3/LedgerSMB/Sysconfig.pm	2012-12-11 09:58:04 UTC (rev 5335)
@@ -116,6 +116,7 @@
 if ($cssdir !~ m|/$|){
     $cssdir = "$cssdir/";
 }
+$fs_cssdir =~ s|/$||;
 
 %printer = %{ $config{printers} } if $config{printers};
 

Modified: branches/1.3/bin/io.pl
===================================================================
--- branches/1.3/bin/io.pl	2012-12-11 09:57:24 UTC (rev 5334)
+++ branches/1.3/bin/io.pl	2012-12-11 09:58:04 UTC (rev 5335)
@@ -1636,6 +1636,8 @@
     &{"$form->{vc}_details"};
 
     my @vars = ();
+
+    $form->{parts_id} = [];
     foreach $i ( 1 .. $form->{rowcount} ) {
         push @vars,
           (
@@ -1645,6 +1647,7 @@
             "unit_$i",          "notes_$i", 
             "image_$i",         "id_$i"
           );
+          push @{$form->{parts_id}}, $form->{"id_$i"};
     }
     for ( split / /, $form->{taxaccounts} ) { push @vars, "${_}_description" }
 

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