salesagility / SuiteCRM

SuiteCRM - Open source CRM for the world
https://www.suitecrm.com
GNU Affero General Public License v3.0
4.46k stars 2.08k forks source link

TextAreas - it shows multirow text edited by inline edit as a text in one row in detaiview #3136

Closed Mausino closed 7 years ago

Mausino commented 7 years ago

Issue

The point is simple. If you inline edit the area field, you cant go on next row, because on push enter keyboard button, it saves you the text in one line.

If the text has a more lines or is breaked by empty row, you can edit it only on editview of record, not by inline edit in textarea, because you haven't chance to break or create new row in text area.

Expected Behavior

You can enter for new rows in textarea by using of inline edit function

Steps to Reproduce

  1. Go to detailview of record which has the textare field
  2. Edit this field by inline edit
  3. Try break the line row or create new row by enter
sgaved commented 7 years ago

Hi @Mausino, You can do this by pressing shift+enter.

Mausino commented 7 years ago

@sgaved thank you for you advice 👍 shift+enter solved 1. part of my problem..

but still is here issue with one line row when you save it by enter or checkmark icon. For example:

Inline edited textarea in detailview textarea1

After enter or checkmark on inline edit in detailview textarea2

Edited by editview and saved. The result on detailview textarea3

sgaved commented 7 years ago

It appears it saves it correctly but doesn't display it correctly. On refresh you would see the correct way. However, it is a bug that it is not displaying it correctly after saving an inline edit.

kdjmonaghan commented 7 years ago

Corrected your issue, @Mausino - the changes will have to be reviewed and merged in before being released in the next build, though. If you're finding this frustrating, please refer to the reference above and add the changes (or simply replace the file with the edited file in the pull request) to the file changed to get the results you expect. :)

Mausino commented 7 years ago

@kdjmonaghan @sgaved thank you both 👍