Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed made onBeforeShow are applied for parent browser screen instead of editor #3265

Open
glebfox opened this issue May 21, 2024 · 0 comments
Labels
in: ui size: M type: bug Something isn't working

Comments

@glebfox
Copy link
Contributor

glebfox commented May 21, 2024

Environment

Jmix version: 1.5.5

Bug Description

Origin: forum

Inside the onBeforeShow listener of an edit screen, if a user modify the editedEntity, the changes are made on the parent browser screen.

Steps To Reproduce

  1. Add the following code to UserEditor
@Subscribe
public void onBeforeShow(final BeforeShowEvent event) {
    getEditedEntity().setFirstName("TEST");
}
  1. Open an entity for editing
  2. Close without saving

Current Behavior

  1. Changed made in onBeforeShow event listener are not applied to the edited entity
  2. Entity isn't marked as modified
  3. The changes are made on the parent browser screen

Screen Recording 2024-05-21 at 11 53 02

Expected Behavior

Entity in the BrowserScreen is not changed

@glebfox glebfox added type: bug Something isn't working in: ui triage Issue is waiting for triage labels May 21, 2024
@gorbunkov gorbunkov added size: M and removed triage Issue is waiting for triage labels May 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: ui size: M type: bug Something isn't working
Projects
Status: Backlog
Development

No branches or pull requests

2 participants