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

LiveData's state is not persisted in the URL when the macro call enforces a filter

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Blocker
    • None
    • 14.4.2, 13.10.7, 14.5
    • Live Data
    • Unknown

    Description

      I'm using this (which is the first example from https://extensions.xwiki.org/xwiki/bin/view/Extension/Live%20Data%20Macro/ )

      {{liveData
        id="recentPages"
        properties="doc.title,doc.location,doc.author,doc.date"
        source="liveTable"
        sourceParameters="translationPrefix=platform.index."
        filters="doc.location=help"
        sort="doc.date:desc"
        limit="5"
      /}}
      

      Removing the filters parameter makes the live data state bookmarkable. There is an exception that might explain the problem, thrown when live data tries to save the state:

      Error: Invalid choice:  is not one of equals,less,greater,between,before,after,contains,startsWith,empty
          encode oneOf.ts:9
          encode object.ts:11
          wrapNative prototype.js:1270
          encode object.ts:9
          u vue.runtime.esm-browser.prod.js:5
      

      in LivedataPersistentConfiguration.vue:278:17

      Attachments

        Issue Links

          Activity

            People

              mleduc Manuel Leduc
              mflorea Marius Dumitru Florea
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: