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

System search ui criterion can be set to multiple event if the property does not support multiple

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Major Major
    • 4.5.3, 4.6.0
    • None
    • None
    • None
    • 4.6 M2

      for example
      <criteria system-ref="workflowStep" multiple="true">
      whereas the workflow step system prop does not support multiple

      and the widget become multiple and leads to an error when used

      he value [1, 3] for criterion workflowStep is not a valid long value.
      java.lang.IllegalArgumentException: The value [1, 3] for criterion workflowStep is not a valid long value.
          at org.ametys.cms.search.systemprop.AbstractSystemProperty.parseLong(AbstractSystemProperty.java:469)
          at org.ametys.cms.search.systemprop.WorkflowStepSystemProperty.getQuery(WorkflowStepSystemProperty.java:95)
          at org.ametys.cms.search.ui.model.impl.SystemSearchUICriterion.getQuery(SystemSearchUICriterion.java:298)
          at org.ametys.cms.search.model.SearchCriterion.getQuery(SearchCriterion.java:114)
          at org.ametys.cms.search.QueryBuilder.getCriteriaQueries(QueryBuilder.java:519)
          at org.ametys.cms.search.QueryBuilder.build(QueryBuilder.java:157)
      
      

            cedric Cédric Damioli
            raphael Raphaël Franchet
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: