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

Fixed Setting of version data in the DataWriters

Discussion in 'Resolved Bug Reports' started by xf_phantom, Jun 8, 2013.

  1. xf_phantom

    xf_phantom Well-Known Member

    This is related to http://xenforo.com/community/threads/phrases-with-wrong-version_id.47517/

    In 1.1.5 this wasn't fixed, not sure if it's fixed for 1.2, so before mike forgets to fix:p this, here's my report
    When the addon_is is changed, the version_id and version_string needs to be changed inside of the phrase & template datawriter too.

    I've fixed this inside the admincontroller (see my patch), but i would suggest to move this to the datawriters and call while preSave.

    Then this bug couldn't happen anymore and we wouldn't need to remember to call updateVersionId if we use the template or phrase DataWriter in own Scripts.

    Attached Files:

  2. Mike

    Mike XenForo Developer Staff Member

    I've moved these to the DW pre-save when possible. There are a few situations where it does need to be called manually but they're already done.
    Nobita.Kun and xf_phantom like this.

Share This Page