This is an automated email from the ASF dual-hosted git repository.

nmalin pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 65f90adf86 Fixed: createWorkEffort error to retreive getNextSeqId
65f90adf86 is described below

commit 65f90adf868701e4420877fe98aba58007315b2a
Author: Nicolas Malin <nicolas.ma...@nereide.fr>
AuthorDate: Wed Mar 27 11:13:38 2024 +0100

    Fixed: createWorkEffort error to retreive getNextSeqId
---
 .../workeffort/workeffort/workeffort/WorkEffortServicesScript.groovy    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/applications/workeffort/src/main/groovy/org/apache/ofbiz/workeffort/workeffort/workeffort/WorkEffortServicesScript.groovy
 
b/applications/workeffort/src/main/groovy/org/apache/ofbiz/workeffort/workeffort/workeffort/WorkEffortServicesScript.groovy
index b16b4d2778..a0b8fe6cdc 100644
--- 
a/applications/workeffort/src/main/groovy/org/apache/ofbiz/workeffort/workeffort/workeffort/WorkEffortServicesScript.groovy
+++ 
b/applications/workeffort/src/main/groovy/org/apache/ofbiz/workeffort/workeffort/workeffort/WorkEffortServicesScript.groovy
@@ -208,7 +208,7 @@ Map createWorkEffortAndPartyAssign() {
  */
 Map createWorkEffort() {
     GenericValue workEffort = makeValue('WorkEffort', parameters)
-    workEffort.workEffortId = workEffort.workEffortId ?: 
delegator.getNextSeqId(WorkEffort)
+    workEffort.workEffortId = workEffort.workEffortId ?: 
delegator.getNextSeqId('WorkEffort')
     String errMsg = UtilValidate.checkValidDatabaseId(workEffort.workEffortId)
     if (errMsg) {
         return error(errMsg)

Reply via email to