svn commit: r1822376 - /ofbiz/ofbiz-framework/branches/release17.12/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: r1822376 - /ofbiz/ofbiz-framework/branches/release17.12/applications/workeffort/groovyScripts/ical/IsCalOwner.groovy

rishi
Author: rishi
Date: Sat Jan 27 08:40:47 2018
New Revision: 1822376

URL: http://svn.apache.org/viewvc?rev=1822376&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. Applied fix from trunk revision 1822375.
(OFBIZ-10173)
Thanks Ratnesh Upadhyay for reporting the issue.
Thanks Yogesh Noaroliya for providing fix for the issue.

Modified:
    ofbiz/ofbiz-framework/branches/release17.12/applications/workeffort/groovyScripts/ical/IsCalOwner.groovy

Modified: ofbiz/ofbiz-framework/branches/release17.12/applications/workeffort/groovyScripts/ical/IsCalOwner.groovy
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/branches/release17.12/applications/workeffort/groovyScripts/ical/IsCalOwner.groovy?rev=1822376&r1=1822375&r2=1822376&view=diff
==============================================================================
--- ofbiz/ofbiz-framework/branches/release17.12/applications/workeffort/groovyScripts/ical/IsCalOwner.groovy (original)
+++ ofbiz/ofbiz-framework/branches/release17.12/applications/workeffort/groovyScripts/ical/IsCalOwner.groovy Sat Jan 27 08:40:47 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