Author: pranayp
Date: Sat May 21 12:49:11 2016
New Revision: 1744930
URL:
http://svn.apache.org/viewvc?rev=1744930&view=revLog:
Applied fix from trunk revision 1744929.
---------------------------------------------------------------------
[OFBIZ-7003] Applied patch from the ticket. Fixed error on console when accessing project manager.
Thanks James Yong for reporting the issue, thanks Montalbano Florian for review and comment and thanks Chandan Khandelwal for providing the patch.
---------------------------------------------------------------------
Modified:
ofbiz/branches/release15.12/specialpurpose/projectmgr/script/org/ofbiz/project/ProjectServices.xml
ofbiz/branches/release15.12/specialpurpose/projectmgr/widget/forms/ProjectForms.xml
Modified: ofbiz/branches/release15.12/specialpurpose/projectmgr/script/org/ofbiz/project/ProjectServices.xml
URL:
http://svn.apache.org/viewvc/ofbiz/branches/release15.12/specialpurpose/projectmgr/script/org/ofbiz/project/ProjectServices.xml?rev=1744930&r1=1744929&r2=1744930&view=diff==============================================================================
--- ofbiz/branches/release15.12/specialpurpose/projectmgr/script/org/ofbiz/project/ProjectServices.xml (original)
+++ ofbiz/branches/release15.12/specialpurpose/projectmgr/script/org/ofbiz/project/ProjectServices.xml Sat May 21 12:49:11 2016
@@ -1197,7 +1197,7 @@
</calcop>
</calculate>
<else>
- <set field="actualNonBilledHours" from-field="totalOriginalHours" type="Double"/>
+ <set field="actualNonBilledHours" from-field="totalOriginalHours" default-value="0" type="Double"/>
</else>
</if-not-empty>
<set field="highInfo.actualNonBilledHours" from-field="actualNonBilledHours" type="Double"/>
Modified: ofbiz/branches/release15.12/specialpurpose/projectmgr/widget/forms/ProjectForms.xml
URL:
http://svn.apache.org/viewvc/ofbiz/branches/release15.12/specialpurpose/projectmgr/widget/forms/ProjectForms.xml?rev=1744930&r1=1744929&r2=1744930&view=diff==============================================================================
--- ofbiz/branches/release15.12/specialpurpose/projectmgr/widget/forms/ProjectForms.xml (original)
+++ ofbiz/branches/release15.12/specialpurpose/projectmgr/widget/forms/ProjectForms.xml Sat May 21 12:49:11 2016
@@ -206,7 +206,7 @@
<field name="actualCompletionDate" title="${uiLabelMap.FormFieldTitle_actualCompletionDate}"><display type="date"/></field>
<field name="plannedHours" title="${uiLabelMap.ProjectMgrPlannedHours}"><display/></field>
<field name="actualHours" title="${uiLabelMap.ProjectMgrActualHours}"><display/></field>
- <field name="actualNonBilledTotalHours" title="${uiLabelMap.ProjectMgrNonBilledActualHours}"><display description="${groovy:isBillable&&actualNonBilledTotalHours!=void?actualNonBilledTotalHours:""}"/></field>
+ <field name="actualNonBilledHours" title="${uiLabelMap.ProjectMgrNonBilledActualHours}"><display description="${groovy:isBillable&&actualNonBilledHours!=void?actualNonBilledHours:""}"/></field>
<field name="createdStamp" title="${uiLabelMap.FormFieldTitle_createdDate}"><display type="date"/></field>
</form>
<form name="EditSubProjects" list-name="projects" type="list" target="RemoveSubProject"