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

Fixed Add-on Style Property Groups not deleted

Discussion in 'Resolved Bug Reports' started by ragtek, Jul 31, 2011.

  1. ragtek

    ragtek Guest

    If you have a add-on with style property groups and you deinstall it, they won't be removed!

    steps to reproduce:

    create add-on
    create style property group + style properties and associate them to the add-on
    deinstall the add-on

    the phrases are removed, but you'll see the style property groups still in the list
     

    Attached Files:

  2. ragtek

    ragtek Guest

    possible fix:

    add
    PHP:
    $this->getModelFromCache('XenForo_Model_StyleProperty')->deleteStylePropertyGroupsInStyle(-1$addOnIdtrue);
    $this->getModelFromCache('XenForo_Model_StyleProperty')->deleteStylePropertyGroupsInStyle(0$addOnIdtrue);
    to XenForo_Model_AddOn::deleteAddOnMasterData

    ps:
    also the property group isn't selected, if you create a prop group and click the first time on it and get redirected to the "create new property form".
     
  3. Mike

    Mike XenForo Developer Staff Member

    Fix looks good, though the function only takes 2 arguments. Thanks. :)
     

Share This Page