svn commit: r755168 - /ofbiz/trunk/specialpurpose/projectmgr/script/org/ofbiz/project/ProjectServices.xml

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

svn commit: r755168 - /ofbiz/trunk/specialpurpose/projectmgr/script/org/ofbiz/project/ProjectServices.xml

hansbak-2
Author: hansbak
Date: Tue Mar 17 09:44:26 2009
New Revision: 755168

URL: http://svn.apache.org/viewvc?rev=755168&view=rev
Log:
create project from template did not take name and description from screen

Modified:
    ofbiz/trunk/specialpurpose/projectmgr/script/org/ofbiz/project/ProjectServices.xml

Modified: ofbiz/trunk/specialpurpose/projectmgr/script/org/ofbiz/project/ProjectServices.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/projectmgr/script/org/ofbiz/project/ProjectServices.xml?rev=755168&r1=755167&r2=755168&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/projectmgr/script/org/ofbiz/project/ProjectServices.xml (original)
+++ ofbiz/trunk/specialpurpose/projectmgr/script/org/ofbiz/project/ProjectServices.xml Tue Mar 17 09:44:26 2009
@@ -518,12 +518,12 @@
             <field-to-result field="parameters.projectId" result-name="projectId"/>
             <add-error error-list-name="error_list"><fail-message message="Project: ${parameters.projectId} not found"/></add-error>
         </if-empty>
-        <if-not-empty field="parameters.workEffortName">
-            <set field="newProject.workEffortName" from-field="parameters.workEffortName"/>
-            <else>
-                <set field="newProject.workEffortName" from-field="project.workEffortName"/>
-            </else>
-        </if-not-empty>
+        <if-empty field="parameters.workEffortName">
+            <set field="parameters.workEffortName" from-field="project.workEffortName"/>
+        </if-empty>
+        <if-empty field="parameters.description">
+            <set field="parameters.description" from-field="project.description"/>
+        </if-empty>
         <if-not-empty field="toTemplate">
             <set field="parameters.workEffortTypeId" value="PROJECT_TEMPLATE"/>
             <else>
@@ -532,7 +532,6 @@
         </if-not-empty>
         <set field="parameters.currentStatusId" value="PRJ_ACTIVE"/>
         <clear-field field="parameters.workEffortId"/>
-        <set field="parameters.workEffortName" from-field="project.workEffortName"/>
         <call-simple-method method-name="createWorkEffort" xml-resource="component://workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml"/>
         <set field="newProjectId" from-field="newEntity.workEffortId"/>