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

Strange order of criteria in "select content by search"

XMLWordPrintable

    • 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>
      

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

              Created:
              Updated:
              Resolved: