StatBlockCore

7 - Not checking the "type" field for valid types

SBC will display a block for any LDB regardless of type:

local lfgDataObjects = LDB:NewDataObject("LFG DataObject Collection", {
    type = "lfg-dataobject-list",
    
    list = {},
})

That makes a blank block.

User When Change
funkydude Mon, 13 Apr 2009 00:59:19 Changed status from Invalid to Declined
funkydude Mon, 13 Apr 2009 00:58:56 Changed status from New to Invalid
sylvanaar Wed, 17 Dec 2008 23:47:07 Create

You must login to post a comment. Don't have an account? Register to get one!

  • 2 comments
  • Avatar of funkydude funkydude Mon, 13 Apr 2009 00:58:22

    By design so that any future blocks don't get missed out. Was also originally because a type wasn't required and some plugins don't use it.

  • Avatar of sylvanaar sylvanaar Wed, 17 Dec 2008 23:49:26

    Sorry the first one makes a block titled "LFG DataObject Collection"

    This makes a blank one

    local lfgLevelFilter = LDB:NewDataObject("Level Filter", { type = "lfg-filter", text = "", })

  • 2 comments

Facts

Last updated on
13 Apr 2009
Reported on
17 Dec 2008
Status
Declined - We decided not to take action on this ticket.
Type
Defect - A shortcoming, fault, or imperfection
Priority
Medium - Normal priority.

Reported by

Possible assignees