IDEMPIERE-4543 Fix Post-it doesn't save/update from HTML tab (#1356)

This commit is contained in:
Anozi Mada 2022-06-03 13:36:10 +07:00 committed by GitHub
parent 5971d6dee7
commit e0bef13fc4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -179,7 +179,8 @@ public class WPostIt extends Window implements EventListener<Event>{
onCancel();
} else if (event.getTarget().getId().equals(ConfirmPanel.A_OK)) {
if (editable) {
m_postIt.setText(textBox.getText());
String text = tabbox.getSelectedIndex() == 0 ? textBox.getText() : editor.getValue();
m_postIt.setText(text);
m_postIt.saveEx();
}
detach();