svn commit: r1765108 - /ofbiz/trunk/applications/party/minilang/party/PartySimpleEvents.xml

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

svn commit: r1765108 - /ofbiz/trunk/applications/party/minilang/party/PartySimpleEvents.xml

jleroux@apache.org
Author: jleroux
Date: Sat Oct 15 20:56:04 2016
New Revision: 1765108

URL: http://svn.apache.org/viewvc?rev=1765108&view=rev
Log:
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/trunk/applications/party/minilang/party/PartySimpleEvents.xml

Modified: ofbiz/trunk/applications/party/minilang/party/PartySimpleEvents.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/minilang/party/PartySimpleEvents.xml?rev=1765108&r1=1765107&r2=1765108&view=diff
==============================================================================
--- ofbiz/trunk/applications/party/minilang/party/PartySimpleEvents.xml (original)
+++ ofbiz/trunk/applications/party/minilang/party/PartySimpleEvents.xml Sat Oct 15 20:56:04 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>