Quantcast

Removed item_id as a search option, as it's only really useful for development - this allows searching on specific skill levels.

James D. Callahan III [07-10-10 - 06:53]
Removed item_id as a search option, as it's only really useful for development - this allows searching on specific skill levels.
Filename
Frame.lua
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