ixed incorect backup of tables with multidigit prefix [0000223]
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Wed, 21 Apr 2010 11:25:07 +0000 (11:25 +0000)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Wed, 21 Apr 2010 11:25:07 +0000 (11:25 +0000)
CHANGELOG.txt
admin/db/maintenance_db.inc

index 6e513076780575b30bd644c5038ae4e7401500f7..b7a86e2b3937665f0dc4e9b38139864bd3ee9d4c 100644 (file)
@@ -20,7 +20,11 @@ Legend:
 $ -> Affected files
 
 21-Apr-2010 Joe Hunt
-# Deleting a Sales Order with reference to a voided delivery causes SQL error when
+# [0000223] Incorrect backup of tables with more than 2 digit prefix
+$ /admin/db/maintenance_db.inc
+
+21-Apr-2010 Joe Hunt
+# [0000222] Deleting a Sales Order with reference to a voided delivery causes SQL error when
   looking at this delivery. Solution, can't delete, but set the deliveries to 0
   on the lines.
 $ /sales/includes/db/sales_order_db.inc
index e88c0a13e577f2a6b8f1efe681fdd3947298eb6d..18e680dfe96179010504867ef99194c2e7228604 100644 (file)
@@ -551,7 +551,7 @@ function db_export($conn, $filename, $zip='no', $comment='', $tbpref = TB_PREF)
     {
                //if ($conn["tbpref"] == "" || strpos($row['Name'], $conn["tbpref"]) !== false) replaced
                if (($conn["tbpref"] == "" && !preg_match('/[0-9]+_/', $row['Name'])) ||
-                       ($conn["tbpref"] != "" && strpos($row['Name'], $conn["tbpref"]) !== false))
+                       ($conn["tbpref"] != "" && strpos($row['Name'], $conn["tbpref"]) === 0))
                $all_tables[] = $row;
     }
         // get table structures