From bae1ff85643a3cf843a31296761355891f5ac450 Mon Sep 17 00:00:00 2001 From: "James D. Callahan III" Date: Sat, 10 Jul 2010 02:53:05 -0400 Subject: [PATCH] Removed item_id as a search option, as it's only really useful for development - this allows searching on specific skill levels. --- Frame.lua | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Frame.lua b/Frame.lua index 467193e..101a8c9 100644 --- a/Frame.lua +++ b/Frame.lua @@ -449,10 +449,12 @@ do local location_list = private.location_list local search_params = { - ["item_id"] = true, - ["name"] = true, - ["specialty"] = true, - ["skill_level"] = true, + "name", + "skill_level", + --@debug@ + -- "item_id", + --@end-debug@ + "specialty", } -- Scans through the recipe database and toggles the flag on if the item is in the search criteria function SearchRecipes(pattern) @@ -469,7 +471,7 @@ do if entry.profession == current_prof then local found = false - for field in pairs(search_params) do + for index, field in ipairs(search_params) do local str = entry[field] and tostring(entry[field]):lower() or nil if str and str:find(pattern) then -- 1.7.9.5