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

[Solr SearchTool] Display multiple reference field

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.2.13, 4.3.0
    • 4.2.2, 4.3.0
    • Plugin : Search
    • None
    • 4.3 RC2

      A field of type reference with multiple value is not well displayed.

      I know the type of field reference is not designed to be multiple, but if we display it through a search tool and a join or a repeater, it's possible that we have to display multiple values for a reference field.

      Here, I have a multiple content field aPourServiceCommun. In the content type containing into this attribute, we have a composite field adressePrincipale with a simple field of reference type web.

          [CMS-9975] [Solr SearchTool] Display multiple reference field

          I think we can't have a multiple reference field directly.

          Steps to reproduce

          1. Use content type org.ametys.test.Content.exhaustive from tests.
          2. Create several exhaustive contents by filling the Reference field.
          3. Create another exhaustive content by filling the Owns field with the others contents you defined at step 2.
          4. Launch the following Solr search :
            • Content types : Exhaustive
            • Query : *:*
            • Columns : title, reference, owns, owns.reference

          Bérénice Maurel added a comment - I think we can't have a multiple reference field directly. Steps to reproduce Use content type org.ametys.test.Content.exhaustive from tests. Create several exhaustive contents by filling the Reference field. Create another exhaustive content by filling the Owns field with the others contents you defined at step 2. Launch the following Solr search : Content types : Exhaustive Query : *:* Columns : title, reference, owns, owns.reference

          Simon Prieul (Inactive) added a comment - - edited

          Issue is more general than on type reference only, it potentially affects all types
          See in the attached screenshots the state before and the sate after my proposed fix (it also fixed "multiple" dates and boolean).
          Functional testing must verify it does not bring regression on any type, and that a "multiple" column (due to a join) on any type is well displayed

          Simon Prieul (Inactive) added a comment - - edited Issue is more general than on type reference only, it potentially affects all types See in the attached screenshots the state before and the sate after my proposed fix (it also fixed "multiple" dates and boolean). Functional testing must verify it does not bring regression on any type, and that a "multiple" column (due to a join) on any type is well displayed

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

              Created:
              Updated:
              Resolved: