Uploaded image for project: '{RETIRED} CKEditor Integration'
  1. {RETIRED} CKEditor Integration
  2. CKEDITOR-419

Displaying a static list property in view mode output a select element

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Blocker
    • 1.59
    • 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

          Activity

            People

              mflorea Marius Dumitru Florea
              surli Simon Urli
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: