mirror of
https://github.com/moparisthebest/davmail
synced 2025-01-06 03:08:02 -05:00
EWS: send extended properties first on update
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1173 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
c589af80ab
commit
6dd90d4b03
@ -243,8 +243,16 @@ public abstract class EWSMethod extends PostMethod {
|
||||
protected void writeUpdates(Writer writer) throws IOException {
|
||||
if (updates != null) {
|
||||
writer.write("<t:Updates>");
|
||||
// write extended properties first
|
||||
for (FieldUpdate fieldUpdate : updates) {
|
||||
fieldUpdate.write(itemType, writer);
|
||||
if (fieldUpdate.fieldURI instanceof ExtendedFieldURI) {
|
||||
fieldUpdate.write(itemType, writer);
|
||||
}
|
||||
}
|
||||
for (FieldUpdate fieldUpdate : updates) {
|
||||
if (!(fieldUpdate.fieldURI instanceof ExtendedFieldURI)) {
|
||||
fieldUpdate.write(itemType, writer);
|
||||
}
|
||||
}
|
||||
writer.write("</t:Updates>");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user