Skip to content
Snippets Groups Projects
Commit cd00e3bf authored by Carsten  Rose's avatar Carsten Rose
Browse files

Merge branch 'B15729_textelement_auto_multiline' into 'develop'

B15729 textelement auto multiline

See merge request !547
parents acc71f6d 7479bd84
No related branches found
No related tags found
2 merge requests!588New version v23.6.0,!547B15729 textelement auto multiline
Pipeline #9250 passed
...@@ -1531,6 +1531,11 @@ abstract class AbstractBuildForm { ...@@ -1531,6 +1531,11 @@ abstract class AbstractBuildForm {
$formElement[FE_INPUT_TYPE] = 'number'; $formElement[FE_INPUT_TYPE] = 'number';
} }
// when size empty but value contains \n then set auto multi line
if (strpos($value, "\n") == true && empty($formElement[FE_SIZE])) {
$formElement[FE_SIZE]='50,2';
}
// Check for input type 'textarea'. Possible notation: a) '', b) '<width>', c) '<width>,<height>', d) '<width>,<min-height>,<max-height>' // Check for input type 'textarea'. Possible notation: a) '', b) '<width>', c) '<width>,<height>', d) '<width>,<min-height>,<max-height>'
$colsRows = explode(',', $formElement[FE_SIZE], 3); $colsRows = explode(',', $formElement[FE_SIZE], 3);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment