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

SF.net SVN: ledger-smb:[6440] trunk



Revision: 6440
          http://sourceforge.net/p/ledger-smb/code/6440
Author:   einhverfr
Date:     2014-01-11 08:00:45 +0000 (Sat, 11 Jan 2014)
Log Message:
-----------
Fixing 939, by setting default checked for new sequence

Modified Paths:
--------------
    trunk/LedgerSMB/Scripts/configuration.pm
    trunk/UI/Configuration/sequence.html

Modified: trunk/LedgerSMB/Scripts/configuration.pm
===================================================================
--- trunk/LedgerSMB/Scripts/configuration.pm	2014-01-11 07:54:47 UTC (rev 6439)
+++ trunk/LedgerSMB/Scripts/configuration.pm	2014-01-11 08:00:45 UTC (rev 6440)
@@ -295,7 +295,7 @@
 sub save_sequences {
     my ($request) = @_;
     for my $count (1 .. $request->{count}){
-        if ($request->{"save_$count"}){
+        if ($request->{"save_$count"} and $request->{"label_$count"}){
            my %shash;
            for my $key (qw(accept_input setting_key label prefix sequence suffix)){
               $shash{$key} = $request->{"${key}_$count"};

Modified: trunk/UI/Configuration/sequence.html
===================================================================
--- trunk/UI/Configuration/sequence.html	2014-01-11 07:54:47 UTC (rev 6439)
+++ trunk/UI/Configuration/sequence.html	2014-01-11 08:00:45 UTC (rev 6440)
@@ -68,6 +68,7 @@
            type = 'checkbox'
            name = 'save_' _ count 
           value = 1
+        checked = 'CHECKED'
      } ?></td>
  <td><?lsmb 
      PROCESS input element_data = {

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


------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
Ledger-smb-commits mailing list
..hidden..
https://lists.sourceforge.net/lists/listinfo/ledger-smb-commits