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

Not a Bug Strange behavior in template editor and its output

Discussion in 'Resolved Bug Reports' started by Aivaras, Jun 19, 2016.

  1. Aivaras

    Aivaras Active Member

    One of my CSS templates contains this snippet:
    .ctaBbcodeTable tr:hover
        background-color: @inlineMod;
    If I 1) change "@inlineMod" to some other color, say, "yellow", 2) "Save All Changes", 3) undo the change (Ctrl+Z) in the editor window, and 4) hit the "Save All Changes" again, the template is marked red and saved as edited although it effectively contains no changes.

    If I open the template again I get this view for the above-mentioned snippet:


    If I hit "View Custom Changes" I get this view:


    Now that is odd: what I see in the template editor as:
    background-color:  background-color: @inlineMod;
    is actually:
    background-color: {xen:property inlineMod};
    Any ideas what's going on here?
    Last edited: Jun 19, 2016
  2. Aivaras

    Aivaras Active Member

    Just a short follow-up on this issue.

    I made a mistake of using "@propertyname" syntax in the add-on installation files where it should have been "{xen:property propertyname}".

    Correcting that resolved the issue. The template editor view and View Custom Changes now show the same results.
    Last edited: Jun 19, 2016
  3. Chris D

    Chris D XenForo Developer Staff Member

    Indeed. Under these conditions this has behaved how it was supposed to.

Share This Page