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

SF.net SVN: ledger-smb:[6364] trunk/LedgerSMB/Scripts/setup.pm



Revision: 6364
          http://sourceforge.net/p/ledger-smb/code/6364
Author:   ehuelsmann
Date:     2014-01-03 16:38:39 +0000 (Fri, 03 Jan 2014)
Log Message:
-----------
Upgrade code consistency check fixes.

Modified Paths:
--------------
    trunk/LedgerSMB/Scripts/setup.pm

Modified: trunk/LedgerSMB/Scripts/setup.pm
===================================================================
--- trunk/LedgerSMB/Scripts/setup.pm	2014-01-03 10:30:43 UTC (rev 6363)
+++ trunk/LedgerSMB/Scripts/setup.pm	2014-01-03 16:38:39 UTC (rev 6364)
@@ -429,9 +429,9 @@
     my $locale = $request->{_locale};
 
     for my $check (LedgerSMB::Upgrade_Tests->get_tests()){
-        next if ($check->min_version lt $dbinfo->{version}) or 
-                ($check->max_version gt $dbinfo->{version}) or
-		($check->appname ne $dbinfo->{appname});
+        next if ($check->min_version gt $dbinfo->{version}) 
+	    || ($check->max_version lt $dbinfo->{version})
+	    || ($check->appname ne $dbinfo->{appname});
         my $sth = $request->{dbh}->prepare($check->test_query);
         $sth->execute();
         if ($sth->rows > 0){ # Check failed --CT
@@ -467,8 +467,8 @@
     );
     my $rows = [];
     my $count = 1;
-    my $hiddens = {table => $check->{table},
-                    edit => $check->{edit},
+    my $hiddens = {table => $check->table,
+                    edit => $check->column,
                 database => $request->{database}};
     my $header = {};
     for (@{$check->display_cols}){
@@ -479,7 +479,7 @@
           $row->{$check->column} = 
                     { input => {
                                 name => $check->column . "_$row->{id}",
-                                value => $row->{$check->{'edit'}},
+                                value => $row->{$check->column},
                                 type => 'text',
                                 size => 15,
                     },

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


------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Ledger-smb-commits mailing list
..hidden..
https://lists.sourceforge.net/lists/listinfo/ledger-smb-commits