Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-4529

XWiki velocity variables are undefined when the edited content is rendered

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 2.0.3, 2.1 M1
    • 2.0.2
    • WYSIWYG Editor
    • None
    • Integration
    • Trivial

    Description

      Follow this steps to reproduce:

      • edit a new page in WYSIWYG mode
      • switch to source tab and set the content to:
        {{velocity}}
        #if($hasEdit)
        You can edit
        #else
        You can't edit
        #end
        {{/velocity}}
        
      • switch to WYSIWYG tab

      The displayed text is "You can't edit" instead of "You can edit".

      Attachments

        Activity

          People

            mflorea Marius Dumitru Florea
            mflorea Marius Dumitru Florea
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: