Exception on AceConfigDialog #577


Open
  • Eliote created this issue May 28, 2021

    Using a multiselect option and using a table as key for a value in the values parameter gives an error. (Tested on TBC Classic)

     

    Example:

    options.example = {
    type = "multiselect",
    name = L["Example"],
    values = function()
    local values = {}
    values[{ type = "foo", subtype = "bar" }] = "foo/bar"
    values[{ type = "foo", subtype = "baz" }] = "foo/baz"
    return values
    end,
    get = function(info, key) return fetch(key.type, key.subtype) end,
    set = function(info, key, value) doSomethingWith(key.type, key.subtype, value) end
    }

    Exception:
    [string "@Masque\Libs\AceConfig-3.0-3\AceConfigDialog-3.0\AceConfigDialog-3.0-81.lua"]:1311: in function <...nfig-3.0\AceConfigDialog-3.0\AceConfigDialog-3.0.lua:1121>
    [string "@Masque\Libs\AceConfig-3.0-3\AceConfigDialog-3.0\AceConfigDialog-3.0-81.lua"]:1652: in function `FeedGroup'
    [string "@Masque\Libs\AceConfig-3.0-3\AceConfigDialog-3.0\AceConfigDialog-3.0-81.lua"]:1577: in function <...nfig-3.0\AceConfigDialog-3.0\AceConfigDialog-3.0.lua:1561>

To post a comment, please login or register a new account.