mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 00:58:55 +01:00
Fix some bugs in mail.setContent()
This commit is contained in:
parent
c5a291218a
commit
15dc81d8f8
@ -721,11 +721,11 @@ app.classes.mail = AppJS.extend(
|
|||||||
|
|
||||||
// Merge array values, replace strings
|
// Merge array values, replace strings
|
||||||
var value = widget.getValue() || content[field];
|
var value = widget.getValue() || content[field];
|
||||||
if(jQuery.isArray(value))
|
if(jQuery.isArray(value) || jQuery.isArray(content[field]))
|
||||||
{
|
{
|
||||||
if(jQuery.isArray(content[field]))
|
if(jQuery.isArray(content[field]))
|
||||||
{
|
{
|
||||||
value.concat(content[field]);
|
value = value.concat(content[field]);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -740,7 +740,7 @@ app.classes.mail = AppJS.extend(
|
|||||||
}
|
}
|
||||||
catch(e)
|
catch(e)
|
||||||
{
|
{
|
||||||
egw.log("error", "Unable to set field %s to '%s' in window '%s'", field, content[field],window_name);
|
egw.debug("error", "Unable to set field %s to '%s' in window '%s'", field, content[field],window.name);
|
||||||
success = false;
|
success = false;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user