mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 09:09:04 +01:00
allow to use numbers for attributes of type string, silently convert them to strings, fixes not working blur values for quantity in timesheet
This commit is contained in:
parent
febc2f8763
commit
0b6fa2785b
@ -155,6 +155,11 @@ function et2_checkType(_val, _type, _attr, _widget)
|
||||
// Check whether the given value is of the type "string"
|
||||
if (_type == "string" || _type == "html")
|
||||
{
|
||||
if (typeof _val == "number") // as php is a bit vague here, silently convert to a string
|
||||
{
|
||||
return _val.toString();
|
||||
}
|
||||
|
||||
if (typeof _val == "string")
|
||||
{
|
||||
return _type == "html" ? _val : html_entity_decode(_val);
|
||||
|
Loading…
Reference in New Issue
Block a user