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

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



Revision: 6952
          http://sourceforge.net/p/ledger-smb/code/6952
Author:   einhverfr
Date:     2014-03-28 03:06:48 +0000 (Fri, 28 Mar 2014)
Log Message:
-----------
Fixed null pricegroup handling in upgrade/migration tests

Modified Paths:
--------------
    branches/1.3/Changelog
    branches/1.3/scripts/setup.pl

Modified: branches/1.3/Changelog
===================================================================
--- branches/1.3/Changelog	2014-03-28 03:03:45 UTC (rev 6951)
+++ branches/1.3/Changelog	2014-03-28 03:06:48 UTC (rev 6952)
@@ -12,6 +12,7 @@
 * Fixed customer/vendor dropdown resetting on update (Chris T, 1072)
 * Fixed error that string cannot be used as array during payment (Chris T)
 * Fixed POD syntax errors in five LedgerSMB/* files. (Robert C)
+* Fixed upgrade tests where null pricegrup exists (Chris T)
 
 Changelog for 1.3.38
 * Fixed AR/AP transactions resetting currency/exchange rate (Chris T)

Modified: branches/1.3/scripts/setup.pl
===================================================================
--- branches/1.3/scripts/setup.pl	2014-03-28 03:03:45 UTC (rev 6951)
+++ branches/1.3/scripts/setup.pl	2014-03-28 03:06:48 UTC (rev 6952)
@@ -414,7 +414,8 @@
           table => 'makemodel'},
         { query => "select *
                      from partscustomer
-                    where not exists (select 1
+                    where pricegroup_id is not null and
+                          not exists (select 1
                                         from pricegroup
                                        where id = pricegroup_id)",
           name => $locale->text("Non-existing customer pricegroups in partscustomer (can't be edited through the web interface)"),

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


------------------------------------------------------------------------------
_______________________________________________
Ledger-smb-commits mailing list
..hidden..
https://lists.sourceforge.net/lists/listinfo/ledger-smb-commits