svn commit: r574109 - /ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/project/edittask.ftl

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

svn commit: r574109 - /ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/project/edittask.ftl

apatel-2
Author: apatel
Date: Sun Sep  9 17:36:15 2007
New Revision: 574109

URL: http://svn.apache.org/viewvc?rev=574109&view=rev
Log:
minor bug fixes

Modified:
    ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/project/edittask.ftl

Modified: ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/project/edittask.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/project/edittask.ftl?rev=574109&r1=574108&r2=574109&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/project/edittask.ftl (original)
+++ ofbiz/trunk/specialpurpose/projectmgr/webapp/projectmgr/project/edittask.ftl Sun Sep  9 17:36:15 2007
@@ -78,11 +78,11 @@
             <td>          
               <select name="currentStatusId" class="selectBox">
               <#if task?exists>
-                <#assign currentStatusId = task.currentStatusId?if_exists>
-                <option SELECTED value="${currentStatusId}">${currentStatusId}</option>  
-                <#assign statusValidChangeToDetailList = delegator.findByAnd("StatusValidChangeToDetail", Static["org.ofbiz.base.util.UtilMisc"].toMap("statusId", currentStatusId))>
+                <#assign currentStatus = task.getRelatedOne("CurrentStatusItem")?if_exists>
+                <option value="${currentStatus.statusId}">${currentStatus.description}</option>  
+                <#assign statusValidChangeToDetailList = delegator.findByAnd("StatusValidChangeToDetail", Static["org.ofbiz.base.util.UtilMisc"].toMap("statusId", currentStatus.statusId))>
                 <#list statusValidChangeToDetailList as statusValidChangeToDetail>
-                  <option value=${statusValidChangeToDetail.statusId}>${statusValidChangeToDetail.description}</option>
+                  <option value=${statusValidChangeToDetail.statusIdTo}>${statusValidChangeToDetail.description}</option>
                 </#list>
               <#else>
                 <#assign statusItemTasks = delegator.findByAnd("StatusItem", Static["org.ofbiz.base.util.UtilMisc"].toMap("statusTypeId", "TASK_STATUS"))>
@@ -139,7 +139,7 @@
               <#if task?exists>
                 <#assign scopeEnumId = task.scopeEnumId?if_exists>            
                 <#list enumerations as enumeration>                    
-                  <option <#if "${enumeration.enumId}" == scopeEnumId?if_exists>selected="selected"</#if>>${enumeration.description}</option>
+                  <option value="${enumeration.enumId}" <#if "${enumeration.enumId}" == scopeEnumId?if_exists>selected="selected"</#if>>${enumeration.description}</option>
                 </#list>
               <#else>
                 <#list enumerations as enumeration>