False result in validation for pending changes

Description

When validating for pending changes the check is returning even when there are nothing to save, in the case of a just new untouched record.

This affects the functionalities to Logout, Change Role and Close a window, because the system asks for confirmation on a window that doesn't have pending changes.

Test case:

  • Log in as SuperUser in GardenWorld Admin role

  • Click the Plus button on Product favourite shortcut

  • Try Change Role, Logout or closing the Product window

All those operations will ask the user unnecessarily to confirm.

Environment

None

Activity

Show:

Carlos Ruiz April 20, 2021 at 9:21 PM

Found also that when changing data in the detail tab, is not decorating the tab title with * to indicate the user which tab has pending changes to save - fixed in the pull request too.

Carlos Ruiz April 20, 2021 at 8:35 PM

There is also a bug in the actual code, if the pending change is in the detail tab, the validation is wrong and is not asking the user for confirmation.

Fixed

Details

Assignee

Reporter

Fix versions

Priority

Created April 20, 2021 at 8:28 PM
Updated June 1, 2021 at 6:06 PM
Resolved April 21, 2021 at 1:57 PM