mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-25 08:09:02 +01:00
* Mail: do not override existing compose fields with predefined values
This commit is contained in:
parent
5cebe65b83
commit
35d63ee84f
@ -274,6 +274,10 @@ app.classes.mail = AppJS.extend(
|
|||||||
var pca = egw.preference(this.et2.getWidgetById('mailaccount').getValue().split(":")[0]+'_predefined_compose_addresses', 'mail');
|
var pca = egw.preference(this.et2.getWidgetById('mailaccount').getValue().split(":")[0]+'_predefined_compose_addresses', 'mail');
|
||||||
for (var p in pca)
|
for (var p in pca)
|
||||||
{
|
{
|
||||||
|
if (this.et2.getWidgetById(p).getValue() && pca[p])
|
||||||
|
{
|
||||||
|
pca[p] = pca[p].concat(this.et2.getWidgetById(p).getValue());
|
||||||
|
}
|
||||||
this.et2.getWidgetById(p).set_value(pca[p]);
|
this.et2.getWidgetById(p).set_value(pca[p]);
|
||||||
}
|
}
|
||||||
this.compose_fieldExpander_init();
|
this.compose_fieldExpander_init();
|
||||||
|
Loading…
Reference in New Issue
Block a user