mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-19 08:26:52 +02:00
Fix text customfield with rows set did not result in multi-line textarea
This commit is contained in:
parent
31e83ddf05
commit
aee54e5f45
@ -523,18 +523,26 @@ export class et2_customfields_list extends et2_valueWidget implements et2_IDetac
|
|||||||
_setup_text( field_name, field, attrs)
|
_setup_text( field_name, field, attrs)
|
||||||
{
|
{
|
||||||
// No label on the widget itself
|
// No label on the widget itself
|
||||||
delete(attrs.label);
|
delete (attrs.label);
|
||||||
|
|
||||||
field.type = 'textbox';
|
field.type = 'textbox';
|
||||||
attrs.rows = field.rows > 1 ? field.rows : null;
|
attrs.rows = field.rows > 1 ? field.rows : null;
|
||||||
|
if(attrs.rows && attrs.rows > 0)
|
||||||
|
{
|
||||||
|
field.type = 'textarea';
|
||||||
|
}
|
||||||
|
|
||||||
if(field.len)
|
if(field.len)
|
||||||
{
|
{
|
||||||
attrs.size = field.len;
|
attrs.size = field.len;
|
||||||
if (field.rows == 1) attrs.maxlength = field.len;
|
if(field.rows == 1)
|
||||||
|
{
|
||||||
|
attrs.maxlength = field.len;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
_setup_passwd( field_name, field, attrs)
|
_setup_passwd( field_name, field, attrs)
|
||||||
{
|
{
|
||||||
// No label on the widget itself
|
// No label on the widget itself
|
||||||
|
Loading…
x
Reference in New Issue
Block a user