mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-16 18:31:26 +01: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)
|
||||
{
|
||||
// No label on the widget itself
|
||||
delete(attrs.label);
|
||||
delete (attrs.label);
|
||||
|
||||
field.type = 'textbox';
|
||||
attrs.rows = field.rows > 1 ? field.rows : null;
|
||||
if(attrs.rows && attrs.rows > 0)
|
||||
{
|
||||
field.type = 'textarea';
|
||||
}
|
||||
|
||||
if(field.len)
|
||||
{
|
||||
attrs.size = field.len;
|
||||
if (field.rows == 1) attrs.maxlength = field.len;
|
||||
if(field.rows == 1)
|
||||
{
|
||||
attrs.maxlength = field.len;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
_setup_passwd( field_name, field, attrs)
|
||||
{
|
||||
// No label on the widget itself
|
||||
|
Loading…
Reference in New Issue
Block a user