From deb258224a97804610393ef563d45b5af5c5243a Mon Sep 17 00:00:00 2001 From: Joe Hunt Date: Wed, 14 May 2008 09:14:19 +0000 Subject: [PATCH] Minor fixes in the former files --- CHANGELOG.txt | 4 ++++ includes/ui/ui_lists.inc | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 258a2dec..a23f4400 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -19,6 +19,10 @@ Legend: ! -> Note $ -> Affected files +14-May-2008 Joe Hunt +# Minor bugs in the former fixing. +$ /includes/ui/ui_lists.inc + 14-May-2008 Joe Hunt # When no_item_list or no_customer_list or no_supplier_list was checked in company setup the listboxes were filled with all the records when there were no search values. diff --git a/includes/ui/ui_lists.inc b/includes/ui/ui_lists.inc index 6e5bde40..50bcbfeb 100644 --- a/includes/ui/ui_lists.inc +++ b/includes/ui/ui_lists.inc @@ -52,6 +52,8 @@ function supplier_list($name, $selected_id, $all_option=false, $submit_on_change echo sprintf($search_button, $edit_button); } + else + $supplier_sql .= "ORDER BY supp_name"; $supplier_result = db_query($supplier_sql); @@ -160,6 +162,8 @@ function customer_list($name, $selected_id, $all_option=false, $submit_on_change echo sprintf($search_button, $edit_button); } + else + $customer_sql .= "ORDER BY name"; $customer_result = db_query($customer_sql); -- 2.30.2