Author: jleroux
Date: Sat Oct 15 21:01:10 2016
New Revision: 1765109

URL: http://svn.apache.org/viewvc?rev=1765109&view=rev
Log:
"Applied fix from trunk for revision: 1765108  "  (path handled by hand)
------------------------------------------------------------------------
r1765108 | jleroux | 2016-10-15 22:56:04 +0200 (sam. 15 oct. 2016) | 15 lignes

Fixed: Updating Party Content Image does not work
(OFBIZ-8458)

Steps to reproduce - 
 - Go to any Party Profile.
 - Add an image from Party Content section.
 - Once image is added, click on the contentId, it will redirect you to the 
   Party Content screen.
 - Click on Edit button and upload a new image.

Expected - Image should be updated.
Actual - No changes can be observed, still old image is associated with the 
         content.

Thanks: Vishal Chhabria for report and patch
------------------------------------------------------------------------

Modified:
    
ofbiz/branches/release13.07/applications/party/script/org/ofbiz/party/party/PartySimpleEvents.xml
    
ofbiz/branches/release14.12/applications/party/script/org/ofbiz/party/party/PartySimpleEvents.xml
    
ofbiz/branches/release15.12/applications/party/script/org/ofbiz/party/party/PartySimpleEvents.xml

Modified: 
ofbiz/branches/release13.07/applications/party/script/org/ofbiz/party/party/PartySimpleEvents.xml
URL: 
http://svn.apache.org/viewvc/ofbiz/branches/release13.07/applications/party/script/org/ofbiz/party/party/PartySimpleEvents.xml?rev=1765109&r1=1765108&r2=1765109&view=diff
==============================================================================
--- 
ofbiz/branches/release13.07/applications/party/script/org/ofbiz/party/party/PartySimpleEvents.xml
 (original)
+++ 
ofbiz/branches/release13.07/applications/party/script/org/ofbiz/party/party/PartySimpleEvents.xml
 Sat Oct 15 21:01:10 2016
@@ -116,6 +116,8 @@ under the License.
              <field field="formInput" type="java.util.Map"/>
          </call-class-method >
          <set-service-fields service-name="updateContentAndUploadedFile" 
map="formInput.formInput" to-map="partyContentMap"/>
+         <set field="partyContentMap.uploadedFile" 
from-field="formInput.imageData"/>
+         <set field="partyContentMap._uploadedFile_fileName" 
from-field="formInput.imageFileName"/>
          <call-service service-name="updateContentAndUploadedFile" 
in-map-name="partyContentMap" break-on-error="false">
             <result-to-field result-name="contentId" field="contentId"/>
          </call-service>

Modified: 
ofbiz/branches/release14.12/applications/party/script/org/ofbiz/party/party/PartySimpleEvents.xml
URL: 
http://svn.apache.org/viewvc/ofbiz/branches/release14.12/applications/party/script/org/ofbiz/party/party/PartySimpleEvents.xml?rev=1765109&r1=1765108&r2=1765109&view=diff
==============================================================================
--- 
ofbiz/branches/release14.12/applications/party/script/org/ofbiz/party/party/PartySimpleEvents.xml
 (original)
+++ 
ofbiz/branches/release14.12/applications/party/script/org/ofbiz/party/party/PartySimpleEvents.xml
 Sat Oct 15 21:01:10 2016
@@ -116,6 +116,8 @@ under the License.
              <field field="formInput" type="java.util.Map"/>
          </call-class-method >
          <set-service-fields service-name="updateContentAndUploadedFile" 
map="formInput.formInput" to-map="partyContentMap"/>
+         <set field="partyContentMap.uploadedFile" 
from-field="formInput.imageData"/>
+         <set field="partyContentMap._uploadedFile_fileName" 
from-field="formInput.imageFileName"/>
          <call-service service-name="updateContentAndUploadedFile" 
in-map-name="partyContentMap" break-on-error="false">
             <result-to-field result-name="contentId" field="contentId"/>
          </call-service>

Modified: 
ofbiz/branches/release15.12/applications/party/script/org/ofbiz/party/party/PartySimpleEvents.xml
URL: 
http://svn.apache.org/viewvc/ofbiz/branches/release15.12/applications/party/script/org/ofbiz/party/party/PartySimpleEvents.xml?rev=1765109&r1=1765108&r2=1765109&view=diff
==============================================================================
--- 
ofbiz/branches/release15.12/applications/party/script/org/ofbiz/party/party/PartySimpleEvents.xml
 (original)
+++ 
ofbiz/branches/release15.12/applications/party/script/org/ofbiz/party/party/PartySimpleEvents.xml
 Sat Oct 15 21:01:10 2016
@@ -116,6 +116,8 @@ under the License.
              <field field="formInput" type="java.util.Map"/>
          </call-class-method >
          <set-service-fields service-name="updateContentAndUploadedFile" 
map="formInput.formInput" to-map="partyContentMap"/>
+         <set field="partyContentMap.uploadedFile" 
from-field="formInput.imageData"/>
+         <set field="partyContentMap._uploadedFile_fileName" 
from-field="formInput.imageFileName"/>
          <call-service service-name="updateContentAndUploadedFile" 
in-map-name="partyContentMap" break-on-error="false">
             <result-to-field result-name="contentId" field="contentId"/>
          </call-service>


Reply via email to