This issue has been created
 
 
XWiki Platform / cid:jira-generated-image-avatar-68fb6072-b0ce-4aaf-8f53-1a3f87b6ef12 XWIKI-24798 Open

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

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-422ae5dd-efcf-4b55-9295-b61252b61993 Marius Dumitru Florea created this issue on 03/Sep/26 18:11
 
Summary: LiveData's state is not persisted in the URL when the macro call enforces a filter
Issue Type: cid:jira-generated-image-avatar-68fb6072-b0ce-4aaf-8f53-1a3f87b6ef12 Bug
Affects Versions: 18.6.0
Assignee: Unassigned
Components: Live Data
Created: 03/Sep/26 18:11
Priority: cid:jira-generated-image-static-major-b86bdc57-57ae-415e-a81b-ba088e13f985 Major
Reporter: Marius Dumitru Florea
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