Author: jleroux
Date: Mon Jun 20 09:32:24 2016
New Revision: 1749282
URL: http://svn.apache.org/viewvc?rev=1749282&view=rev
Log:
A patch from Anurag Chandak for "The 1st time you close a project you get an
error, it works the 2d time" https://issues.apache.org/jira/browse/OFBIZ-2947
To regenerate this issue on trunk, here are the steps:
Go to Project --> Projects
Click on New Project
Only enter Project Name and click on save button
Close the current project.
The following error is thrown
Proper fix: issue occurred due to use of inappropriate map. Instead of fetching
the value of projectId from parameters, its better to get it from context map
as its already set at screen.
Modified:
ofbiz/trunk/specialpurpose/projectmgr/widget/ProjectMenus.xml
Modified: ofbiz/trunk/specialpurpose/projectmgr/widget/ProjectMenus.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/projectmgr/widget/ProjectMenus.xml?rev=1749282&r1=1749281&r2=1749282&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/projectmgr/widget/ProjectMenus.xml (original)
+++ ofbiz/trunk/specialpurpose/projectmgr/widget/ProjectMenus.xml Mon Jun 20
09:32:24 2016
@@ -294,7 +294,7 @@
</and>
</condition>
<link target="updateProject" request-confirmation="true"
confirmation-message="${uiLabelMap.ProjectMgrConfirmationClose}">
- <parameter param-name="workEffortId"
from-field="parameters.projectId"/>
+ <parameter param-name="workEffortId" from-field="projectId"/>
<parameter param-name="currentStatusId" value="PRJ_CLOSED"/>
</link>
</menu-item>