From 9a28913a7143f2a8477fc387935b4c1f4fd53eca Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Mon, 2 Feb 2009 19:52:26 +0000 Subject: [PATCH] Bugfix [0000115] error on empty table after 'Update' presss in fallback mode. --- CHANGELOG.txt | 2 ++ sales/inquiry/sales_orders_view.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 7ab68138..2b998bff 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -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) diff --git a/sales/inquiry/sales_orders_view.php b/sales/inquiry/sales_orders_view.php index 511ba5ad..d0172b6c 100644 --- a/sales/inquiry/sales_orders_view.php +++ b/sales/inquiry/sales_orders_view.php @@ -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); -- 2.30.2