Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-6206

cmsfn.isEditMode() returns wrong value in linked files (css, js)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Major
    • None
    • 5.3.8
    • core
    • None

    Description

      cmsfn.isEditMode() always returns false in processed CSS/JS files, even if in edit mode.

      This is because session attributes are not checked anymore, when setting the aggregationstate in the InterceptFilter class (method previewMode())

      This code:
      // then in attributes, i.e the session
      final Boolean value = (Boolean) MgnlContext.getAttribute(MGNL_PREVIEW_ATTRIBUTE, Context.SESSION_SCOPE);
      return BooleanUtils.toBoolean(value);

      has been replaced with:
      return true;

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              Unassigned Unassigned
              bvass Bence Vass
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD