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

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



Revision: 6188
          http://sourceforge.net/p/ledger-smb/code/6188
Author:   einhverfr
Date:     2013-10-28 07:53:29 +0000 (Mon, 28 Oct 2013)
Log Message:
-----------
Fixing 2 partsgroup issues:
1.  Cannot have more than one root partsgroup, and
2.  Cannot create new root partsgroup.

Modified Paths:
--------------
    trunk/LedgerSMB/PE.pm
    trunk/bin/pe.pl

Modified: trunk/LedgerSMB/PE.pm
===================================================================
--- trunk/LedgerSMB/PE.pm	2013-10-28 07:45:21 UTC (rev 6187)
+++ trunk/LedgerSMB/PE.pm	2013-10-28 07:53:29 UTC (rev 6188)
@@ -354,6 +354,7 @@
         push @group,  $form->{id};
     }
     else {
+        $form->{parent}  = undef unless $form->{parent};
         $query = qq|
 			INSERT INTO partsgroup (partsgroup, parent)
 			     VALUES (?, ?)|;

Modified: trunk/bin/pe.pl
===================================================================
--- trunk/bin/pe.pl	2013-10-28 07:45:21 UTC (rev 6187)
+++ trunk/bin/pe.pl	2013-10-28 07:53:29 UTC (rev 6188)
@@ -125,7 +125,8 @@
       <table width=100%>
 	<tr>
           <th align="right">| . $locale->text('Parent') . qq|</th>
-          <td><select name='parent'>|;
+          <td><select name='parent'>
+              <option></option>|;
               for my $pg (@{$form->{item_list}}){
                   my $selected = '';
                   $selected = 'SELECTED="SELECTED"'

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


------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk
_______________________________________________
Ledger-smb-commits mailing list
..hidden..
https://lists.sourceforge.net/lists/listinfo/ledger-smb-commits