1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Fixed Deleting an option group leaves an orphaned phrase

Discussion in 'Resolved Bug Reports' started by Chris D, Mar 21, 2013.

  1. Chris D

    Chris D XenForo Developer Staff Member

    Steps to reproduce:
    • Create an add-on
    • Create an option group
      • This will create two phrases:
        • option_group_optionGroupId
        • option_group_optionGroupId_description
    • Create an option
      • This will create another two phrases:
        • option_optionId
        • option_optionId_explain
    • Delete the entire option group
    • Everything is deleted as it should be, except for one phrase:
      • option_optionId_explain


    In the Option Model, the "deleteOptionsInGroup" function which is invoked by the OptionGroup DataWriter "postSave" function only deletes the Title phrase:


    Replace above line with:

    Luke F, Alien and Alluidh like this.
  2. Mike

    Mike XenForo Developer Staff Member

    Fixed, thanks. :)
    Slavik, Eagle, Chris D and 1 other person like this.

Share This Page