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

Children macro is not properly live rendered and needs page refresh to display its content when in-place editing

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 12.4
    • 12.3-rc-1
    • Index, Tree
    • None
    • Windows 10 Pro 64 bit, Chrome 81, using a local instance XWiki 12.3 on Oracle 19c, Tomcat 9.0.31
    • Easy
    • N/A
    • N/A

    Description

      STEPS TO REPRODUCE

      1. Edit in-place a page that has children (eg. Sandbox)
      2. Click on "Insert" Button (the "+" icon)
      3. Click on Other Macros
      4. Search for Children and click Select
      5. Click Submit
      6. Click Save & View
      7. Click 'Edit' to edit the page again

      EXPECTED RESULTS

      The macro content (children of the page) is displayed in-place edit mode as well as right after the page is saved.

      ACTUAL RESULTS

      When in-place edit mode the macro displays:

      macro:template

      After the save, the page needs to be refreshed for the children to be displayed on the macro. However, if the macro is added in WYSIWYG editing mode, the content doesn't require a refresh after save.

      The same behavior can be reproduced with 'Page Tree' macro.

      Also, 'Template Macro' displays   in-place edit mode,  but does not require refresh after page save to display the content (tested with 'code.vm').

      However, 'Tree Macro' displays different the content in-place edit mode and right after the page save, requiring page refresh (unlike when inserted though WYSIWYG edit mode).

       

      Attachments

        1. Children_macro_in_place_edit_mode.png
          17 kB
          Ilie Andriuta
        2. Children_macro_Save_and_View.png
          13 kB
          Ilie Andriuta
        3. Tree_Macro_after_page_save.png
          18 kB
          Ilie Andriuta
        4. Tree_Macro_after_refresh.png
          20 kB
          Ilie Andriuta

        Issue Links

          Activity

            People

              mflorea Marius Dumitru Florea
              iandriuta Ilie Andriuta
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: