Environment
Jmix version: 3.0.0
Bug Description
When editing an entity in the dialog, if you trigger the detail_save action and then click the "X" (close) button, the table does not update.
Steps To Reproduce
- In the newly generated project, add the "detail save" action in the user editor.
- In the table view, update the
editAction
<action id="editAction" type="list_edit">
<properties>
<property name="openMode" value="DIALOG"/>
</properties>
</action>
same for StandardTabbedModeMainView
with <action id="editAction" type="list_edit"/>
Current Behavior
Entity is not updated in table
Expected Behavior
Entity updated in table
Sample Project
jmix3.zip
Proposed solution
Override fireEvent in StandardDetailView
@Override
protected void fireEvent(ComponentEvent<?> componentEvent) {
if (componentEvent instanceof AfterCloseEvent closeEvent && closeEvent.closedWith(StandardOutcome.CLOSE) && isSaveActionPerformed()) {
AfterCloseEvent afterCloseEvent = new AfterCloseEvent(this, StandardOutcome.SAVE.getCloseAction());
super.fireEvent(afterCloseEvent);
} else {
super.fireEvent(componentEvent);
}
}
Environment
Jmix version: 3.0.0
Bug Description
When editing an entity in the dialog, if you trigger the
detail_saveaction and then click the "X" (close) button, the table does not update.Steps To Reproduce
editActionsame for
StandardTabbedModeMainViewwith
<action id="editAction" type="list_edit"/>Current Behavior
Entity is not updated in table
Expected Behavior
Entity updated in table
Sample Project
jmix3.zip
Proposed solution
Override fireEvent in StandardDetailView