Fix some bugs in mail.setContent()

This commit is contained in:
nathangray 2018-08-03 11:00:21 -06:00
parent c5a291218a
commit 15dc81d8f8

View File

@ -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;
} }