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

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



Revision: 5670
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=5670&view=rev
Author:   einhverfr
Date:     2013-03-06 02:02:51 +0000 (Wed, 06 Mar 2013)
Log Message:
-----------
correcting name checking logic so that customers and vendors can be assigned via the menu properly

Modified Paths:
--------------
    trunk/Changelog
    trunk/bin/arap.pl

Modified: trunk/Changelog
===================================================================
--- trunk/Changelog	2013-03-05 10:25:09 UTC (rev 5669)
+++ trunk/Changelog	2013-03-06 02:02:51 UTC (rev 5670)
@@ -92,6 +92,7 @@
 * Fixing history report blank when no fx (Chris T, 3602084)
 * More CSS hooks (Chris T)
 * Fixed DB API for reopening books (Chris T)
+* Fixed menu-selected vendors and customers not working (Chris T)
 
 Changelog for 1.3.29
 * Added db routines for role backup and restore for shared hosting

Modified: trunk/bin/arap.pl
===================================================================
--- trunk/bin/arap.pl	2013-03-05 10:25:09 UTC (rev 5669)
+++ trunk/bin/arap.pl	2013-03-06 02:02:51 UTC (rev 5670)
@@ -90,7 +90,9 @@
         # check name, combine name and id
         #HV $form->{$name} , form->vendor or form->customer , should be at least ' ' for comparison 'ne' to work.('' ne undef) returns undef.(' ' ne undef) returns 1
         if(! $form->{$name}){$form->{$name}=' ';}
-        if ( $form->{"old$name"} ne qq|$form->{$name}--$form->{"${name}_id"}| )
+        if ( $form->{"old$name"} ne qq|$form->{$name}--$form->{"${name}_id"}| 
+             or !$form->{"${name}_id"}
+        )
         {
 
             # this is needed for is, ir and oe

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