|
Version: |
14.10 |
Description: |
Original issue When using the class filter in the livetable options, a document with multiple objects of the filtered class will be returned multiple times, but every time with the first object. h3. Steps to reproduce
The following steps use the AnnotationClass as an example, but you can use any other class. # Create a page with the following code : https {code : //github java} {{velocity}} ## Replace the AnnotationCode . com AnnotationClass class and annotation property with your class. #set($columns = ['annotation', 'doc.name']) #set($columnsProperties = { 'annotation' : {'type' : 'text' }, 'doc.name': { 'type' : 'text', 'link' : 'view' } }) #set($options = { 'className' : 'AnnotationCode.AnnotationClass' }) #livetable("projectTable" $columns $columnsProperties $options) {{ / xwikisas/application-task/issues/196 velocity}} {code} # Add two AnnotationCode.AnnotationClass objects on the same page, with different values for the Annotation field (ex. "Object 1 annotation" and "Object 2 annotation") # Save and view
h4. Expected results:
The livetable lists each object on the page. (So both "Object 1 annotation" and "Object 2 annotation" are visible) h4. Actual results:
The livetable lists the first object multiple times.
!image-2025-04-08-10-48-01-100.png|width=691,height=129! |
Attachment: |
image-2025-04-08-10-48-01-100.png |
|