IDEMPIERE-4543 Fix Post-it doesn't save/update from HTML tab (#1356)
This commit is contained in:
parent
5971d6dee7
commit
e0bef13fc4
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue