small fix for qualified name

This commit is contained in:
Simon Hirsig
2015-09-30 12:11:30 +02:00
parent 04ab7b3174
commit ba3aeaaf1c
+2 -2
View File
@@ -331,7 +331,7 @@ function AuxBuyCategoryDropDown_Initialize(arg1)
UIDropDownMenu_AddButton({
text= 'All',
value = value,
func = AuxBuyCategoryDropDown_OnClick('All', value),
func = AuxBuyCategoryDropDown_OnClick,
}, 1)
for i, class in pairs({ GetAuctionItemClasses() }) do
@@ -373,7 +373,7 @@ function AuxBuyCategoryDropDown_Initialize(arg1)
end
function AuxBuyCategoryDropDown_OnClick()
local qualified_name = ({ GetAuctionItemClasses() })[this.value.class]
local qualified_name = ({ GetAuctionItemClasses() })[this.value.class] or 'All'
if this.value.subclass then
local subclass_name = ({ GetAuctionItemSubclasses(this.value.class) })[this.value.subclass]
qualified_name = qualified_name .. ' - ' .. subclass_name