svn commit: r1802965 - /ofbiz/ofbiz-plugins/trunk/scrum/groovyScripts/AddProductBacklogItem.groovy

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

svn commit: r1802965 - /ofbiz/ofbiz-plugins/trunk/scrum/groovyScripts/AddProductBacklogItem.groovy

pranayp
Author: pranayp
Date: Tue Jul 25 15:19:45 2017
New Revision: 1802965

URL: http://svn.apache.org/viewvc?rev=1802965&view=rev
Log:
Fixed: SCRUM - Error on 'Edit backlog' for a product.
(OFBIZ-9531)

Added missing import for GenericEntityException and defined customer and items list at right place to make it available.

Thanks Pallavi Goyal for reporting and providing the patch.

Modified:
    ofbiz/ofbiz-plugins/trunk/scrum/groovyScripts/AddProductBacklogItem.groovy

Modified: ofbiz/ofbiz-plugins/trunk/scrum/groovyScripts/AddProductBacklogItem.groovy
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-plugins/trunk/scrum/groovyScripts/AddProductBacklogItem.groovy?rev=1802965&r1=1802964&r2=1802965&view=diff
==============================================================================
--- ofbiz/ofbiz-plugins/trunk/scrum/groovyScripts/AddProductBacklogItem.groovy (original)
+++ ofbiz/ofbiz-plugins/trunk/scrum/groovyScripts/AddProductBacklogItem.groovy Tue Jul 25 15:19:45 2017
@@ -23,12 +23,14 @@ import java.util.Calendar
 import net.fortuna.ical4j.model.DateTime
 import org.apache.ofbiz.base.util.*
 import org.apache.ofbiz.entity.condition.*
+import org.apache.ofbiz.entity.GenericEntityException
 import sun.util.calendar.LocalGregorianCalendar.Date
 
 def module = "AddProductBacklogItem.groovy"
 
 // find cust request and items
 def inputFields = [:]
+def custRequestAndItems = []
 
 if(parameters.statusId == null){
     parameters.statusId = ""
@@ -39,7 +41,7 @@ inputFields.putAll(parameters)
 inputFields.custRequestTypeId = "RF_PROD_BACKLOG"
 def performFindResults = runService('performFind', ["entityName": "CustRequestAndCustRequestItem", "inputFields": inputFields, "orderBy": "custSequenceNum"])
 try {
-    def custRequestAndItems = performFindResults.listIt.getCompleteList()
+    custRequestAndItems = performFindResults.listIt.getCompleteList()
 } catch (GenericEntityException e) {
     Debug.logError(e, "Failure in " + module)
 } finally {