svn commit: r1822375 - /ofbiz/ofbiz-framework/trunk/applications/workeffort/groovyScripts/ical/IsCalOwner.groovy

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1822375 - /ofbiz/ofbiz-framework/trunk/applications/workeffort/groovyScripts/ical/IsCalOwner.groovy

rishi
Author: rishi
Date: Sat Jan 27 08:37:42 2018
New Revision: 1822375

URL: http://svn.apache.org/viewvc?rev=1822375&view=rev
Log:
Fixed: Add/Modify Calender Event Screen is Broken. The issue was due to screen expect the list and script is fetching single value. Change from queryFirst to queryList in the script.
(OFBIZ-10173)
Thanks Ratnesh Upadhyay for reporting the issue.
Thanks Yogesh Noaroliya for providing fix for the issue.

Modified:
    ofbiz/ofbiz-framework/trunk/applications/workeffort/groovyScripts/ical/IsCalOwner.groovy

Modified: ofbiz/ofbiz-framework/trunk/applications/workeffort/groovyScripts/ical/IsCalOwner.groovy
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/applications/workeffort/groovyScripts/ical/IsCalOwner.groovy?rev=1822375&r1=1822374&r2=1822375&view=diff
==============================================================================
--- ofbiz/ofbiz-framework/trunk/applications/workeffort/groovyScripts/ical/IsCalOwner.groovy (original)
+++ ofbiz/ofbiz-framework/trunk/applications/workeffort/groovyScripts/ical/IsCalOwner.groovy Sat Jan 27 08:37:42 2018
@@ -21,7 +21,7 @@ import java.util.*
 import org.apache.ofbiz.entity.util.*
 
 boolean isCalOwner = false
-List partyAssignments = from("WorkEffortPartyAssignment").where("workEffortId", parameters.workEffortId, "partyId", parameters.userLogin.partyId).filterByDate().queryFirst();
+List partyAssignments = from("WorkEffortPartyAssignment").where("workEffortId", parameters.workEffortId, "partyId", parameters.userLogin.partyId).filterByDate().queryList()
 for (partyAssign in partyAssignments) {
     if ("CAL_OWNER".equals(partyAssign.roleTypeId) || "CAL_DELEGATE".equals(partyAssign.roleTypeId)) {
         isCalOwner = true