From 52b1a551bcb5f32a75b53e4102d8c5a6910d1fdc Mon Sep 17 00:00:00 2001 From: Manuel Simon Hirsig Date: Fri, 12 Aug 2016 04:59:29 +0200 Subject: [PATCH] filter tab fix --- tabs/search/filter.lua | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/tabs/search/filter.lua b/tabs/search/filter.lua index 64e5278..3702b29 100644 --- a/tabs/search/filter.lua +++ b/tabs/search/filter.lua @@ -110,7 +110,7 @@ function private.update_form() end end -function private.get_form_query() +function private.get_filter_builder_query() local query_string local function add(part) @@ -145,7 +145,9 @@ function private.get_form_query() add(strlower(getglobal('ITEM_QUALITY'..quality..'_DESC'))) end - return query_string or '' + add(aux.filter.query_string({blizzard={}, post=m.post_filter})) + + return query_string end function private.set_form(components) @@ -216,13 +218,8 @@ function private.import_query_string() end function private.export_query_string() - local components, error = aux.filter.parse_query_string(m.get_form_query()) - if components then - m.search_box:SetText(aux.filter.query_string({blizzard=components.blizzard, post=m.post_filter})) - m.filter_input:ClearFocus() - else - aux.log(error) - end + m.search_box:SetText(m.get_filter_builder_query()) + m.filter_input:ClearFocus() end function public.formatted_post_filter(components)