Author: pranayp
Date: Thu May 26 08:27:44 2016
New Revision: 1745573
URL:
http://svn.apache.org/viewvc?rev=1745573&view=revLog:
[OFBIZ-7131] Applied patch from the issue to fix error on adding manufacturing exception day. Added missing queryOne call for find operation.
Thanks Amardeep Singh Jhajj for the contribution.
Modified:
ofbiz/trunk/applications/manufacturing/webapp/manufacturing/WEB-INF/actions/routing/EditCalendarExceptionDay.groovy
Modified: ofbiz/trunk/applications/manufacturing/webapp/manufacturing/WEB-INF/actions/routing/EditCalendarExceptionDay.groovy
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/manufacturing/webapp/manufacturing/WEB-INF/actions/routing/EditCalendarExceptionDay.groovy?rev=1745573&r1=1745572&r2=1745573&view=diff==============================================================================
--- ofbiz/trunk/applications/manufacturing/webapp/manufacturing/WEB-INF/actions/routing/EditCalendarExceptionDay.groovy (original)
+++ ofbiz/trunk/applications/manufacturing/webapp/manufacturing/WEB-INF/actions/routing/EditCalendarExceptionDay.groovy Thu May 26 08:27:44 2016
@@ -52,7 +52,7 @@ exceptionDateStartTime = parameters.exce
exceptionDateStartTime = ObjectType.simpleTypeConvert(exceptionDateStartTime, "Timestamp", null, null);
if (exceptionDateStartTime) {
- calendarExceptionDay = from("TechDataCalendarExcDay").where("calendarId", calendarId , "exceptionDateStartTime", exceptionDateStartTime)
+ calendarExceptionDay = from("TechDataCalendarExcDay").where("calendarId", calendarId , "exceptionDateStartTime", exceptionDateStartTime).queryOne();
if (calendarExceptionDay) {
HtmlFormWrapper updateCalendarExceptionDayWrapper = new HtmlFormWrapper("component://manufacturing/widget/manufacturing/CalendarForms.xml", "UpdateCalendarExceptionDay", request, response);
updateCalendarExceptionDayWrapper.putInContext("calendarExceptionDay", calendarExceptionDay);