-
Bug
-
Resolution: Unresolved
-
Critical
-
None
-
None
-
None
-
4.9.0 M9
-
Oui
I have this model
<extension class="org.ametys.cms.search.ui.model.StaticSearchUIModel"> <SearchModel> <content-types> <content-type id="project"/> </content-types> <simple-search-criteria> <item ref="project-thisyear" multiple="true"> <label i18n="false">Année d'activité</label> <test-operator>eq</test-operator> <default-value>0</default-value> </item>
where project-thisyear is a long
thie code leads to an exception
Caused by: java.lang.ArrayStoreException: arraycopy: element type mismatch: can not cast one of the elements of java.lang.Object[] to the type of the destination array, java.lang.Long at java.base/java.util.ArrayList.toArray(ArrayList.java:401) at org.ametys.runtime.model.DefaultElementDefinition.getDefaultValue(DefaultElementDefinition.java:302) at org.ametys.cms.search.model.impl.AbstractCriterionDefinition._defaultValueToJSON(AbstractCriterionDefinition.java:69) at org.ametys.runtime.model.DefaultElementDefinition._toJSON(DefaultElementDefinition.java:401) at org.ametys.cms.search.model.impl.ReferencingSearchModelCriterionDefinition._toJSON(ReferencingSearchModelCriterionDefinition.java:119)
- Est bloqué par
-
RUNTIME-4155 [XML data] Process empty values
-
- Resolved
-
-
RUNTIME-4156 [Default values] Let's have multiple default values
-
- Resolved
-
-
CMS-12410 [WorkflowStep] Simplify criteria's all option
-
- Code review OK
-
-
CMS-12413 [Site search criterion] Simplify default value syntax
-
- Code review OK
-
-
CMS-12414 [User data] Add the possibility to have Current as default value
-
- Code review OK
-