This issue has been created
 
 
XWiki Platform / cid:jira-generated-image-avatar-ba483250-61e0-4841-85a3-509b89408473 XWIKI-22805 Open

Database List in class definition does only support string fields in refered class

 
View issue   ·   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-2ad4cce2-b012-4da4-aca7-f8ea5371f67e Beat Burgener created this issue on 22/Jan/25 13:06
 
Summary: Database List in class definition does only support string fields in refered class
Issue Type: cid:jira-generated-image-avatar-ba483250-61e0-4841-85a3-509b89408473 Bug
Affects Versions: 15.10.1
Assignee: Unassigned
Created: 22/Jan/25 13:06
Priority: cid:jira-generated-image-static-major-9f4c0254-7779-4c93-a4d2-bfdbbe4d7bc9 Major
Reporter: Beat Burgener
Description:

As outlined here:

https://forum.xwiki.org/t/database-lists-with-class-name-id-and-value-field-data-type/16296

the Database List property of a class using the  “XWiki Class Name”, “Id Field Name” and “Value Field Name” options does only work if the referred fields are of type "String".

Either this should be validated when referring to a field in the class definition or a meaningful error should be displayed when the data is computed.

Right now, the list does simply not populate if either of the fields refer to a non String type.