From 1e0abd0c87edfd376f630eebc23b3c020d2970c2 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Tue, 26 Dec 2006 22:54:24 +0000 Subject: [PATCH] r1370: - Add $show[update] for the mass update option (coming soon) - In update cached result query, instead of using a $bugsys->in['searchid'], use the searchid from the $search array --- search.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/search.php b/search.php index 9cfcf82..ee6f264 100644 --- a/search.php +++ b/search.php @@ -530,7 +530,7 @@ if ($_POST['do'] == 'results') $results[] = $bug; } $search['ids'] = implode(',', $ids); - $db->query("UPDATE " . TABLE_PREFIX . "search SET ids = '" . implode(',', $ids) . "', dateline = " . TIMENOW . ", resultcount = " . sizeof($results) . " WHERE searchid = " . $bugsys->input_clean('searchid', TYPE_UINT)); + $db->query("UPDATE " . TABLE_PREFIX . "search SET ids = '" . implode(',', $ids) . "', dateline = " . TIMENOW . ", resultcount = " . sizeof($results) . " WHERE searchid = " . $search['searchid']); } $show['cached'] = true; $hilight = $search['hilight']; @@ -543,6 +543,7 @@ if ($_POST['do'] == 'results') $sort = new ListSorter('search'); $show['save'] = ($bugsys->userinfo['userid'] AND !$search['name']); + $show['update'] = can_perform('caneditother'); $bugs = ''; $search = $db->query("SELECT * FROM " . TABLE_PREFIX . "bug WHERE bugid IN ($search[ids]) $search[orderby] LIMIT " . $pagination->fetchLimit($pagination->getPage() - 1) . ", " . $pagination->getPerPage()); -- 2.22.5