forked from extern/egroupware
fix email selection after changing selects client- and server-side to no longer send id attribute, but value
thought we still accept id, if there is no value
This commit is contained in:
parent
b59b4ff2aa
commit
a54c100470
@ -125,28 +125,6 @@ export class Et2SelectEmail extends Et2Select
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Add in remote results
|
|
||||||
*
|
|
||||||
* Overridden to get results in a format parent expects.
|
|
||||||
* Current server-side gives {
|
|
||||||
* icon: "/egroupware/api/avatar.php?contact_id=5&etag=1"
|
|
||||||
* id: "ng@egroupware.org"
|
|
||||||
* label: "ng@egroupware.org"
|
|
||||||
* name: ""
|
|
||||||
* title: "ng@egroupware.org"
|
|
||||||
* }
|
|
||||||
* Parent expects value instead of id
|
|
||||||
*
|
|
||||||
* @param results
|
|
||||||
* @protected
|
|
||||||
*/
|
|
||||||
protected processRemoteResults(results)
|
|
||||||
{
|
|
||||||
results.forEach(r => r.value = r.id);
|
|
||||||
super.processRemoteResults(results);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Use a custom tag for when multiple=true
|
* Use a custom tag for when multiple=true
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user