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

The setAllowedTypes of Rule is not work correctly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Neutral Neutral
    • None
    • None
    • None

      Steps to reproduce

      1. try to put the config in yaml

       

      params:
        rule:
         class: info.magnolia.cms.util.Rule
         allowedTypes:
           - mgnl:folder
           - mgnl:asset 

       

       

             2.  Check allowedTypes in this method info.magnolia.cms.util.Rule#setAllowedTypes

      .. Logs, screenshots, gifs...

      Expected results

      allowedTypes should contains 2 items: mgnl:folder and mgnl:asset

      Actual results

      The array value is trimmed incorrect

      Workaround

      Development notes

        Acceptance criteria

          1. actual.png
            actual.png
            61 kB
          2. expect.png
            expect.png
            35 kB

              yen.lactue Yen Lac Tue
              yen.lactue Yen Lac Tue
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD