Author: pgil
Date: Fri Oct 9 18:18:52 2015
New Revision: 1707782
URL:
http://svn.apache.org/viewvc?rev=1707782&view=revLog:
OFBIZ-6637 : Work Effort Month Calendar View Is Broken
Fix a possible endless loop in TemporalExpression Evaluation. Daybump flag must be turned off when used.
Thanks Adrian Crum for Report
Modified:
ofbiz/trunk/framework/service/src/org/ofbiz/service/calendar/TemporalExpressions.java
Modified: ofbiz/trunk/framework/service/src/org/ofbiz/service/calendar/TemporalExpressions.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/service/src/org/ofbiz/service/calendar/TemporalExpressions.java?rev=1707782&r1=1707781&r2=1707782&view=diff==============================================================================
--- ofbiz/trunk/framework/service/src/org/ofbiz/service/calendar/TemporalExpressions.java (original)
+++ ofbiz/trunk/framework/service/src/org/ofbiz/service/calendar/TemporalExpressions.java Fri Oct 9 18:18:52 2015
@@ -469,6 +469,7 @@ public class TemporalExpressions impleme
Calendar next = (Calendar) cal.clone();
if (includesDate(next)) {
if (context.dayBumped) {
+ context.dayBumped = false;
return next;
}
next.add(Calendar.DAY_OF_MONTH, 1);