mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-20 18:08:02 +02: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"
|
// Check whether the given value is of the type "string"
|
||||||
if (_type == "string" || _type == "html")
|
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")
|
if (typeof _val == "string")
|
||||||
{
|
{
|
||||||
return _type == "html" ? _val : html_entity_decode(_val);
|
return _type == "html" ? _val : html_entity_decode(_val);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user