cuba-platform / cuba

CUBA Platform is a high level framework for enterprise applications development
https://www.cuba-platform.com
Apache License 2.0
1.34k stars 221 forks source link

Boolean values of embedded entities are not committed #2561

Closed dkz closed 4 years ago

dkz commented 4 years ago

Environment

Description of the bug or enhancement

Sample project is attached: embedded-boolean.zip Project consists of a single TargetEntity entity and embedded EmbeddedBoolean entity (generated with cuba-cli).

Steps to reproduce bug:

Outcomes:

I.e. data service seems to ignore changes in embedded entity and value cannot be switched to false from UI.

soraksh commented 4 years ago

This situation does not look like a bug, but editor screen in the attached project looks not quite correct. It has only a datasource for the parent entity, but an embedded entity must have its own nested datasource inside parent datasource . If you add one, then everything works correctly and embedded entities are committed.