Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-10914

PasteContent: Mandatory fields not checkable when checkedByDefault is false

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • 4.8.13, 4.9.0
    • 4.5.0
    • None
    • None

      I have an override of PasteContent and PasteContentValues to force a view to copy and don't check attributes by default.

                  <extension id="my.override.PasteContent"
                             ref-id="org.ametys.cms.content.PasteContent"
                             point="org.ametys.core.ui.RibbonControlsManager"
                             class="org.ametys.core.ui.StaticClientSideElement">
                      <class&gt;
                          <viewName>copyAsNew</viewName>
                          <checkByDefault>false</checkByDefault>
                      </class&gt;
                  </extension>
                  
                  <extension id="my.override.PasteContentValues"
                             ref-id="org.ametys.cms.content.PasteContentValues"
                             point="org.ametys.core.ui.RibbonControlsManager"
                             class="org.ametys.core.ui.StaticClientSideElement">
                      <class&gt;
                          <checkByDefault>false</checkByDefault>
                      </class&gt;
                  </extension>

      Mandatory attributes should be automatically checked but it is not anymore.
      And because these attributes are mandatory, they are disabled so I can't check it.

            Unassigned Unassigned
            bmaurel Bérénice Maurel
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: