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

Script Macro doesn't output result in some cases

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 6.4
    • Fix Version/s: 7.1-milestone-1
    • Component/s: Rendering
    • Labels:
      None
    • Tests:
      Integration
    • Difficulty:
      Unknown
    • Similar issues:

      Description

      For example the following will not output anything:

      {{script language="jav8"}}
      1+2
      {{/script}}
      

      The reason is that our code only outputs the result of the engine eval() call if it's an XDOM, Block or List<Block>. If the eval doesn't output anything to the scriptcontext's writer, and the eval() returns something, we should display it.

        Attachments

          Activity

            People

            • Assignee:
              vmassol Vincent Massol
              Reporter:
              vmassol Vincent Massol
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: