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

Page size selector is duplicated when xwiki:livetable:loading is triggered

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Invalid
    • Affects Version/s: 10.0
    • Fix Version/s: None
    • Component/s: LiveTable
    • Labels:
      None
    • Difficulty:
      Unknown
    • Similar issues:

      Description

      This can be easily reproduced using the following code, excuted in a page containing a livetable:

      require(['jquery', 'xwiki-events-bridge'], function($) {
        $(document).trigger('xwiki:livetable:loading');
      });
      

      The issue seems to be at https://github.com/xwiki/xwiki-platform/blob/ed89b3c1a8559852846c0e41d312d4204b458620/xwiki-platform-core/xwiki-platform-web/src/main/webapp/resources/js/xwiki/table/livetable.js#L873 where there is no checking for existing child before creating a new one.

        Attachments

          Activity

            People

            • Assignee:
              acotiuga Alex Cotiugă
              Reporter:
              acotiuga Alex Cotiugă
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Date of First Response: