IDEMPIERE-6285 - Component doesn't enable when user clicks on new record if positioned in a record without access (#2513)

This commit is contained in:
matheus-marcelinux 2024-10-31 23:33:19 -03:00 committed by Carlos Ruiz
parent 87f6d93d8c
commit 4ab86f7f4e
1 changed files with 2 additions and 0 deletions

View File

@ -464,6 +464,8 @@ ContextMenuListener, IZoomableEditor
getComponent().setValue(null);
getComponent().setSelectedItem(null);
oldValue = value;
if (gridField!=null)
gridField.setLockedRecord(false);
if (getComponent() instanceof EditorAutoComplete && gridField!=null) // IDEMPIERE-4442 Fix NPE, for Autocomplete in non Grid Usage.
updateStyle();