IDEMPIERE-5202 Implement auto save of current tab (#1215)

- Fix auto save sometimes not happening for string field update
This commit is contained in:
hengsin 2022-03-03 22:37:55 +08:00 committed by GitHub
parent 96b91f96ae
commit b6ce1e7cbe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

View File

@ -354,7 +354,8 @@ public final class DataStatusEvent extends EventObject implements Serializable
Util.equals(e.m_AD_Message, m_AD_Message) &&
e.m_changedColumn == m_changedColumn &&
Util.equals(e.m_columnName, m_columnName) &&
e.m_currentRow == m_currentRow;
e.m_currentRow == m_currentRow &&
e.isInitEdit == isInitEdit;
}

View File

@ -206,8 +206,9 @@ public class WStringEditor extends WEditor implements ContextMenuListener
changeEvent.setIsInitEdit(isStartEdit);
super.fireValueChange(changeEvent);
oldValue = getComponent().getValue(); // IDEMPIERE-963 - check again the value could be changed by callout
super.fireValueChange(changeEvent);
if (!isStartEdit)
oldValue = getComponent().getValue(); // IDEMPIERE-963 - check again the value could be changed by callout
}
}