diff options
author | William Desportes <williamdes@wdes.fr> | 2021-03-31 14:47:48 +0300 |
---|---|---|
committer | William Desportes <williamdes@wdes.fr> | 2021-03-31 14:54:08 +0300 |
commit | e462bd8ffc59d436a694e4c89a17dceb32313f87 (patch) | |
tree | 452a79f1438a0ca13944f27ff9c4441858b9c447 /js | |
parent | 2dd9797bcf13d89c2256fb35d61b6188966a8412 (diff) |
Fix #16765 - Revert "55880451eb193f7e1bad90df365b67d54eded5a6"
Signed-off-by: William Desportes <williamdes@wdes.fr>
Diffstat (limited to 'js')
-rw-r--r-- | js/src/makegrid.js | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/js/src/makegrid.js b/js/src/makegrid.js index 8e215b01b9..cf6713a739 100644 --- a/js/src/makegrid.js +++ b/js/src/makegrid.js @@ -1240,11 +1240,7 @@ var makeGrid = function (t, enableResize, enableReorder, enableVisib, enableGrid fieldsType.push('hex'); } fieldsNull.push(''); - // Convert \n to \r\n to be consistent with form submitted value. - // The internal browser representation has to be just \n - // while form submitted value \r\n, see specification: - // https://www.w3.org/TR/html5/forms.html#the-textarea-element - fields.push($thisField.data('value').replace(/\n/g, '\r\n')); + fields.push($thisField.data('value')); var cellIndex = $thisField.index('.to_be_saved'); if ($thisField.is(':not(.relation, .enum, .set, .bit)')) { |