Author: ashish
Date: Fri Jun 24 13:48:16 2016 New Revision: 1750098 URL: http://svn.apache.org/viewvc?rev=1750098&view=rev Log: Applied patch from trunk r1750097. ======================================== Applied patch from jira issue - OFBIZ-7556 - Error occurred when making notes private/public from project screen. Thanks Deepak Baghel for the contribution. Modified: ofbiz/branches/release15.12/specialpurpose/projectmgr/webapp/projectmgr/project/summary/noteinfo.ftl ofbiz/branches/release15.12/specialpurpose/projectmgr/widget/ProjectScreens.xml ofbiz/branches/release15.12/specialpurpose/projectmgr/widget/TaskScreens.xml Modified: ofbiz/branches/release15.12/specialpurpose/projectmgr/webapp/projectmgr/project/summary/noteinfo.ftl URL: http://svn.apache.org/viewvc/ofbiz/branches/release15.12/specialpurpose/projectmgr/webapp/projectmgr/project/summary/noteinfo.ftl?rev=1750098&r1=1750097&r2=1750098&view=diff ============================================================================== --- ofbiz/branches/release15.12/specialpurpose/projectmgr/webapp/projectmgr/project/summary/noteinfo.ftl (original) +++ ofbiz/branches/release15.12/specialpurpose/projectmgr/webapp/projectmgr/project/summary/noteinfo.ftl Fri Jun 24 13:48:16 2016 @@ -49,17 +49,37 @@ under the License. <#if note.internalNote! == "N"> <div>${uiLabelMap.ProjectMgrPrintableNote}</div> <#if project?has_content> - <a href="<@ofbizUrl>updateProjectNote?workEffortId=${project.workEffortId!}&noteId=${note.noteId}&internalNote=Y</@ofbizUrl>" class="buttontext">${uiLabelMap.OrderNotesPrivate}</a> + <form name="updateProjectNoteForPublicNote" method="post" action="<@ofbizUrl>updateProjectNote</@ofbizUrl>"> + <input type="hidden" name="workEffortId" value="${project.workEffortId!}" /> + <input type="hidden" name="noteId" value="${note.noteId}" /> + <input type="hidden" name="internalNote" value="Y" /> + <input type="submit" value="${uiLabelMap.OrderNotesPrivate}"/> + </form> <#else> - <a href="<@ofbizUrl>updateTaskNoteSummary?workEffortId=${task.workEffortId!}&noteId=${note.noteId}&internalNote=Y</@ofbizUrl>" class="buttontext">${uiLabelMap.OrderNotesPrivate}</a> + <form name="updateTaskNoteSummaryPublicNote" method="post" action="<@ofbizUrl>updateTaskNoteSummary</@ofbizUrl>"> + <input type="hidden" name="workEffortId" value="${task.workEffortId!}" /> + <input type="hidden" name="noteId" value="${note.noteId}" /> + <input type="hidden" name="internalNote" value="Y" /> + <input type="submit" value="${uiLabelMap.OrderNotesPrivate}"/> + </form> </#if> </#if> <#if note.internalNote! == "Y"> <div>${uiLabelMap.OrderNotPrintableNote}</div> <#if project?has_content> - <a href="<@ofbizUrl>updateProjectNote?workEffortId=${project.workEffortId!}&noteId=${note.noteId}&internalNote=N</@ofbizUrl>" class="buttontext">${uiLabelMap.OrderNotesPublic}</a> + <form name="updateProjectNoteForPrivateNote" method="post" action="<@ofbizUrl>updateProjectNote</@ofbizUrl>"> + <input type="hidden" name="workEffortId" value="${project.workEffortId!}" /> + <input type="hidden" name="noteId" value="${note.noteId}" /> + <input type="hidden" name="internalNote" value="N" /> + <input type="submit" value="${uiLabelMap.OrderNotesPublic}"/> + </form> <#else> - <a href="<@ofbizUrl>updateTaskNoteSummary?workEffortId=${task.workEffortId!}&noteId=${note.noteId}&internalNote=N</@ofbizUrl>" class="buttontext">${uiLabelMap.OrderNotesPublic}</a> + <form name="updateTaskNoteSummaryPrivateNote" method="post" action="<@ofbizUrl>updateTaskNoteSummary</@ofbizUrl>"> + <input type="hidden" name="workEffortId" value="${task.workEffortId!}" /> + <input type="hidden" name="noteId" value="${note.noteId}" /> + <input type="hidden" name="internalNote" value="N" /> + <input type="submit" value="${uiLabelMap.OrderNotesPublic}"/> + </form> </#if> </#if> </td> Modified: ofbiz/branches/release15.12/specialpurpose/projectmgr/widget/ProjectScreens.xml URL: http://svn.apache.org/viewvc/ofbiz/branches/release15.12/specialpurpose/projectmgr/widget/ProjectScreens.xml?rev=1750098&r1=1750097&r2=1750098&view=diff ============================================================================== --- ofbiz/branches/release15.12/specialpurpose/projectmgr/widget/ProjectScreens.xml (original) +++ ofbiz/branches/release15.12/specialpurpose/projectmgr/widget/ProjectScreens.xml Fri Jun 24 13:48:16 2016 @@ -562,6 +562,9 @@ under the License. <section> <actions> <set field="workEffortId" from-field="projectId"/> + <entity-one entity-name="WorkEffort" value-field="project"> + <field-map field-name="workEffortId" from-field="workEffortId"/> + </entity-one> <entity-and entity-name="WorkEffortNoteAndData" list="workEffortNoteandDetails"> <field-map field-name="workEffortId" from-field="workEffortId"/> <order-by field-name="-noteDateTime"/> Modified: ofbiz/branches/release15.12/specialpurpose/projectmgr/widget/TaskScreens.xml URL: http://svn.apache.org/viewvc/ofbiz/branches/release15.12/specialpurpose/projectmgr/widget/TaskScreens.xml?rev=1750098&r1=1750097&r2=1750098&view=diff ============================================================================== --- ofbiz/branches/release15.12/specialpurpose/projectmgr/widget/TaskScreens.xml (original) +++ ofbiz/branches/release15.12/specialpurpose/projectmgr/widget/TaskScreens.xml Fri Jun 24 13:48:16 2016 @@ -396,6 +396,9 @@ under the License. <screen name="NoteInfo"> <section> <actions> + <entity-one entity-name="WorkEffort" value-field="task"> + <field-map field-name="workEffortId" from-field="workEffortId"/> + </entity-one> <entity-and entity-name="WorkEffortNoteAndData" list="workEffortNoteandDetails"> <field-map field-name="workEffortId" from-field="workEffortId"/> <order-by field-name="-noteDateTime"/> |
Free forum by Nabble | Edit this page |