Details
-
Bug
-
Resolution: Fixed
-
Blocker
-
1.57
-
None
-
Unknown
-
N/A
-
N/A
-
Description
I just discovered this while working on Change Request extension, I'm using a StaticList property in some xclass, and I'm displaying a value by using $doc.display('status'). It uses to display only the value of the property when watching the page in view mode, as expected, but it now displays a select all the time, even when I don't have edit rights.
Note that in my case I reproduce the bug because my sheet outputs an instance of CKEditor. If I remove the editor from my sheet, the status appears properly. Also I'm able to easily workaround this by calling $doc.display('status', 'view').
Reproduction steps:
- Import the attached XAR or
- Create a class with a static list property and a textarea with WYSIWYG editor
- Create an object of the same class
- On the same page put this content:
{{velocity}} $doc.display('editor', 'edit') $doc.display('staticlist') ## Should be displayed in view mode {{/velocity}}
Expected result:
- The editor is displayed and the static list is displayed in view mode
Obtained result:
- The editor is displayed and the static list is also displayed in edit mode
Note that I originally reproduced by installing Change Request 0.8 and creating a change request.
Attachments
Issue Links
- depends on
-
XWIKI-19297 You can set but you cannot get the current display mode
- Closed
- is caused by
-
CKEDITOR-414 The wysiwyg editor hangs when loading a page with many display macro calls, trying to display them in edit mode instead of view
- Closed