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

Strange order of criteria in "select content by search"

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.0.6, 4.1.0
    • 4.1.0
    • None
    • None
    • 4.1 RC1

      It seems that order does not respect order in XML definition

      My widget is a "select-content" widget which use a specific search model (person.xml in ODF)

      The criteria are defined like following

      <simple-search-criteria>
                  <criteria field-ref="title"> <!-- use for select person widget (cannot be hidden)-->
                      <test-operator>search</test-operator>
                  </criteria>
      			<criteria field-ref="lastName">
      				<test-operator>search</test-operator>
      			</criteria>
      			<criteria field-ref="givenName">
      				<test-operator>search</test-operator>
      			</criteria>
      			<criteria system-ref="contributor">
      				<test-operator>search</test-operator>
      			</criteria>
      			<criteria system-ref="workflowStep">
      				<test-operator>eq</test-operator>
      				<enumeration>
      					<custom-enumerator class="org.ametys.cms.workflow.DefaultWorkflowStepEnumerator">
      						<workflow-name>person</workflow-name>
      						<exclude-workflow-steps>
      							<id>9999</id>
      						</exclude-workflow-steps>
      					</custom-enumerator>
      				</enumeration>
      			</criteria>
      			<criteria system-ref="lastModified">
      				<label i18n="true">plugin.cms:UITOOL_SEARCH_CONTENT_LASTMODIFIED_AFTER</label>
      				<test-operator>gt</test-operator>
      			</criteria>
      			<criteria system-ref="lastModified">
      				<label i18n="true">plugin.cms:UITOOL_SEARCH_CONTENT_LASTMODIFIED_BEFORE</label>
      				<test-operator>lt</test-operator>
      			</criteria>
                  <criteria system-ref="contentLanguage">
                      <widget>edition.select-language</widget>
                      <default-value>CURRENT</default-value>
                      <validation>
                          <mandatory />
                      </validation>
                  </criteria>
      		</simple-search-criteria>
      

          [CMS-8827] Strange order of criteria in "select content by search"

          Laurence Aumeunier made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]
          Laurence Aumeunier made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Reopened [ 4 ] New: Resolved [ 5 ]

          The issue was correctly fixed.
          The problem is on definition of udorgunit.xml search model

          Laurence Aumeunier added a comment - The issue was correctly fixed. The problem is on definition of udorgunit.xml search model
          Raphaƫl Franchet made changes -
          Fix Version/s New: 4.0.6 [ 14421 ]
          Fix Version/s Original: 4.0.5 [ 14395 ]
          Laurence Aumeunier made changes -
          Sprint Original: 4.1 M6 [ 13 ] New: 4.1 M7 [ 14 ]
          Laurence Aumeunier made changes -
          Attachment New: screenshot-20171208.png [ 20289 ]
          Laurence Aumeunier made changes -
          Assignee New: Laurence Aumeunier [ laurence ]
          Resolution Original: Fixed [ 1 ]
          Status Original: Resolved [ 5 ] New: Reopened [ 4 ]

          still the case (sample: udorgunit search)

          Laurence Aumeunier added a comment - still the case (sample: udorgunit search)
          Laurence Aumeunier made changes -
          Fix Version/s New: 4.0.5 [ 14395 ]
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]

          The order of criteria are not respected for DynamicWrappedSearchUIModel

          Laurence Aumeunier added a comment - The order of criteria are not respected for DynamicWrappedSearchUIModel

            laurence Laurence Aumeunier
            laurence Laurence Aumeunier
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: