Author: ashish Date: Sun Sep 4 07:32:47 2016 New Revision: 1759151 URL: http://svn.apache.org/viewvc?rev=1759151&view=rev Log: Applied patch from jira issue - OFBIZ-8070 - Clean up commented out code in Groovy for Content. Thanks Aman for the contribution.
Modified: ofbiz/trunk/applications/content/groovyScripts/content/ContentSearchOptions.groovy Modified: ofbiz/trunk/applications/content/groovyScripts/content/ContentSearchOptions.groovy URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/groovyScripts/content/ContentSearchOptions.groovy?rev=1759151&r1=1759150&r2=1759151&view=diff ============================================================================== --- ofbiz/trunk/applications/content/groovyScripts/content/ContentSearchOptions.groovy (original) +++ ofbiz/trunk/applications/content/groovyScripts/content/ContentSearchOptions.groovy Sun Sep 4 07:32:47 2016 @@ -29,7 +29,6 @@ if (!"AND".equals(searchOperator) && !"O //create the fromDate for calendar fromCal = Calendar.getInstance(); fromCal.setTime(new java.util.Date()); -//fromCal.set(Calendar.DAY_OF_WEEK, fromCal.getActualMinimum(Calendar.DAY_OF_WEEK)); fromCal.set(Calendar.HOUR_OF_DAY, fromCal.getActualMinimum(Calendar.HOUR_OF_DAY)); fromCal.set(Calendar.MINUTE, fromCal.getActualMinimum(Calendar.MINUTE)); fromCal.set(Calendar.SECOND, fromCal.getActualMinimum(Calendar.SECOND)); @@ -42,7 +41,6 @@ context.put("fromDateStr", fromStr); // create the thruDate for calendar toCal = Calendar.getInstance(); toCal.setTime(new java.util.Date()); -//toCal.set(Calendar.DAY_OF_WEEK, toCal.getActualMaximum(Calendar.DAY_OF_WEEK)); toCal.set(Calendar.HOUR_OF_DAY, toCal.getActualMaximum(Calendar.HOUR_OF_DAY)); toCal.set(Calendar.MINUTE, toCal.getActualMaximum(Calendar.MINUTE)); toCal.set(Calendar.SECOND, toCal.getActualMaximum(Calendar.SECOND));