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. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/branches/release17.12@1822376 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user