[OFBiz] SVN: r7730 - trunk/applications/content/script/org/ofbiz/content/survey

sichen@svn.ofbiz.org sichen at svn.ofbiz.org
Thu Jun 1 14:54:33 CDT 2006


Author: sichen
Date: 2006-06-01 14:54:30 -0500 (Thu, 01 Jun 2006)
New Revision: 7730

Modified:
   trunk/applications/content/script/org/ofbiz/content/survey/SurveyServices.xml
Log:
Set the sequence num on SurveyResponseAnswer to that of the SurveyQuestion if no other value is found

Modified: trunk/applications/content/script/org/ofbiz/content/survey/SurveyServices.xml
===================================================================
--- trunk/applications/content/script/org/ofbiz/content/survey/SurveyServices.xml	2006-06-01 15:35:09 UTC (rev 7729)
+++ trunk/applications/content/script/org/ofbiz/content/survey/SurveyServices.xml	2006-06-01 19:54:30 UTC (rev 7730)
@@ -706,7 +706,10 @@
                 </else>
                 </if-instance-of>
             </if-compare>
-            
+
+            <if-empty field-name="sequenceNum" map-name="responseAnswer">
+                <set from-field="surveyQuestionAndAppl.sequenceNum" field="responseAnswer.sequenceNum"/>
+            </if-empty>      
             <set from-field="nowTimestamp" field="responseAnswer.answeredDate"/>
             <store-value value-name="responseAnswer"/>
         </if-not-empty>



More information about the Svn mailing list