Skip to content

Commit 8757cae

Browse files
author
pborissow
committed
- Updated the save method in the Contact and CalendarEvent classes to update the lastModified date immediately after save/update.
git-svn-id: svn://192.168.0.80/JavaXT/javaxt-exchange@374 2c7b0aa6-e0b2-3c4e-bb4a-8b65b6c465ff
1 parent 1de2a2a commit 8757cae

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/javaxt/exchange/CalendarEvent.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -815,6 +815,10 @@ public String save(Connection conn) throws ExchangeException {
815815

816816
if (id==null) create(conn);
817817
else update("CalendarItem", "calendar", options, conn);
818+
819+
//Update last modified date
820+
this.lastModified = new CalendarEvent(id, conn).getLastModifiedTime();
821+
818822
return id;
819823
}
820824

src/javaxt/exchange/Contact.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1011,6 +1011,10 @@ public String save(Connection conn) throws ExchangeException {
10111011

10121012
if (id==null) create(conn);
10131013
else update("Contact", "contacts", options, conn);
1014+
1015+
//Update last modified date
1016+
this.lastModified = new Contact(id, conn).getLastModifiedTime();
1017+
10141018
return id;
10151019
}
10161020

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy