Bugfix [0000115] error on empty table after 'Update' presss in fallback mode.
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Mon, 2 Feb 2009 19:52:26 +0000 (19:52 +0000)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Mon, 2 Feb 2009 19:52:26 +0000 (19:52 +0000)
CHANGELOG.txt
sales/inquiry/sales_orders_view.php

index 7ab681384e16f69dc7fd6478cc8271d5ee738ccf..2b998bff012bdb63b3548a370a7caa82b84be12c 100644 (file)
@@ -32,6 +32,8 @@ $ /dimensions/inquiry/search_dimensions.php
   /sales/inquiry/customer_inquiry.php
 # Fixed due date display for invoices.
 $ /sales/inquiry/customer_inquiry.php
+# Bugfix [0000115] - error on empty table update in fallback mode.
+$ /sales/inquiry/customer_allocation_inquiry.php
 
 30-Jan-2009 Joe Hunt
 + Outputs/Inputs on tax inquiry as well (why not)
index 511ba5ad490fc5b5499c32cbd235bd03cf160357..d0172b6c437998758888d4ae8ebb82a74377c720 100644 (file)
@@ -140,7 +140,7 @@ $id = find_submit('_chgtpl');
 if ($id != -1)
        change_tpl_flag($id);
 
-if (isset($_POST['Update'])) {
+if (isset($_POST['Update']) && isset($_POST['last']) {
        foreach($_POST['last'] as $id => $value)
                if ($value != check_value('chgtpl'.$id))
                        change_tpl_flag($id);