From d5c036f01e41b7acbf36eb00a298aa2a3edfe044 Mon Sep 17 00:00:00 2001 From: Joe Hunt Date: Fri, 11 Dec 2015 11:22:55 +0100 Subject: [PATCH] Rerun of last non fixed assets search. --- includes/ui/ui_lists.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/ui/ui_lists.inc b/includes/ui/ui_lists.inc index 9cb41a48..a82e9d3a 100644 --- a/includes/ui/ui_lists.inc +++ b/includes/ui/ui_lists.inc @@ -293,7 +293,7 @@ $opts = array( // default options default_focus(($search_box && $by_id) ? $search_box : $name); $img = ""; - if ($SysPrefs->use_popup_search && !isset($opts['fixed_asset'])) + if ($SysPrefs->use_popup_search && (!isset($opts['fixed_asset']) || !$opts['fixed_asset'])) { $img_title = ""; $link = ""; @@ -822,7 +822,7 @@ function stock_items_list($name, $selected_id=null, $all_option=false, 'spec_id' => ALL_TEXT, 'search_box' => true, 'search' => array("stock_id", "c.description","s.description"), - 'search_submit' => get_company_pref('no_item_list')!=0 && !isset($opts['fixed_asset']), + 'search_submit' => get_company_pref('no_item_list')!=0 && (!isset($opts['fixed_asset']) || !$opts['fixed_asset']), 'size'=>10, 'select_submit'=> $submit_on_change, 'category' => 2, -- 2.30.2