IDEMPIERE-5156 Editing a multi-line field in grid destroys the new line separator (#1155)

This commit is contained in:
Carlos Ruiz 2022-02-04 11:35:00 +01:00 committed by GitHub
parent 824e1bb2da
commit 68db1fd3b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 4 deletions

View File

@ -189,7 +189,7 @@ public abstract class WEditor implements EventListener<Event>, PropertyChangeLis
* @param comp
* @param gridField
* @param rowIndex
* @param tableEditor
* @param tableEditor editor for Grid
* @param editorConfiguration
*/
public WEditor(Component comp, GridField gridField, int rowIndex, boolean tableEditor, IEditorConfiguration editorConfiguration)

View File

@ -146,9 +146,7 @@ public class WStringEditor extends WEditor implements ContextMenuListener
}
if (!tableEditor)
getComponent().setCols(displayLength);
if (tableEditor)
getComponent().setMultiline(false);
else if (gridField.getDisplayType() == DisplayType.Text)
if (gridField.getDisplayType() == DisplayType.Text)
{
getComponent().setMultiline(true);
}