Commit 6bb186b4 authored by Dave Cridland's avatar Dave Cridland

Merge pull request #320 from MattSkala/fix-startdate

fix getAuditedStartDate resetting startDate to null
parents 01bfba5b 91dc127f
......@@ -168,7 +168,7 @@ public class JdbcPersistenceManager implements PersistenceManager {
public Date getAuditedStartDate(Date startDate) {
long maxRetrievable = JiveGlobals.getIntProperty("conversation.maxRetrievable", ConversationManager.DEFAULT_MAX_RETRIEVABLE)
* JiveConstants.DAY;
Date result = null;
Date result;
if (maxRetrievable > 0) {
Date now = new Date();
Date maxRetrievableDate = new Date(now.getTime() - maxRetrievable);
......@@ -176,6 +176,8 @@ public class JdbcPersistenceManager implements PersistenceManager {
result = maxRetrievableDate;
} else if (startDate.before(maxRetrievableDate)) {
result = maxRetrievableDate;
} else {
result = startDate;
}
}else{
result = startDate;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment