parent
38d4a26827
commit
e7c15a697d
|
@ -323,8 +323,12 @@
|
||||||
Account.$log.debug('New message (edit): ' + JSON.stringify(data, undefined, 2));
|
Account.$log.debug('New message (edit): ' + JSON.stringify(data, undefined, 2));
|
||||||
angular.extend(message.editable, data);
|
angular.extend(message.editable, data);
|
||||||
message.isNew = true;
|
message.isNew = true;
|
||||||
if (options && options.mailto)
|
if (options && options.mailto) {
|
||||||
message.$parseMailto(options.mailto);
|
if (angular.isObject(options.mailto))
|
||||||
|
angular.extend(message.editable, options.mailto);
|
||||||
|
else
|
||||||
|
message.$parseMailto(options.mailto);
|
||||||
|
}
|
||||||
return message;
|
return message;
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue