svn commit: r1303328 - /ofbiz/trunk/applications/product/script/org/ofbiz/product/imagemanagement/ImageManagementEvents.xml

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

svn commit: r1303328 - /ofbiz/trunk/applications/product/script/org/ofbiz/product/imagemanagement/ImageManagementEvents.xml

hansbak-2
Author: hansbak
Date: Wed Mar 21 09:39:05 2012
New Revision: 1303328

URL: http://svn.apache.org/viewvc?rev=1303328&view=rev
Log:
fix... set default image function in image management

Modified:
    ofbiz/trunk/applications/product/script/org/ofbiz/product/imagemanagement/ImageManagementEvents.xml

Modified: ofbiz/trunk/applications/product/script/org/ofbiz/product/imagemanagement/ImageManagementEvents.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/script/org/ofbiz/product/imagemanagement/ImageManagementEvents.xml?rev=1303328&r1=1303327&r2=1303328&view=diff
==============================================================================
--- ofbiz/trunk/applications/product/script/org/ofbiz/product/imagemanagement/ImageManagementEvents.xml (original)
+++ ofbiz/trunk/applications/product/script/org/ofbiz/product/imagemanagement/ImageManagementEvents.xml Wed Mar 21 09:39:05 2012
@@ -39,7 +39,7 @@ under the License.
         <create-value value-field="productContent"/>
         
         <!-- set thumbnail to product -->
-        <entity-and list="productContentAndInfos" entity-name="ProductContentAndInfo">
+        <!--<entity-and list="productContentAndInfos" entity-name="ProductContentAndInfo">
             <field-map field-name="productId" from-field="parameters.productId"/>
             <field-map field-name="contentId" from-field="parameters.contentId"/>
             <field-map field-name="productContentTypeId" value="DEFAULT_IMAGE"/>
@@ -48,11 +48,11 @@ under the License.
             <first-from-list entry="productContentAndInfo" list="productContentAndInfos"/>
             <script location="component://product/webapp/catalog/WEB-INF/actions/imagemanagement/SetDefaultImage.groovy"/>
             
-            <!--<entity-one value-field="product" entity-name="Product">
+            <entity-one value-field="product" entity-name="Product">
                 <field-map field-name="productId" from-field="parameters.productId"/>
             </entity-one>
             <set field="product.originalImageUrl" from-field="productContentAndInfo.drObjectInfo"/>
-            <store-value value-field="product"/>-->
-        </if-not-empty>
+            <store-value value-field="product"/>
+        </if-not-empty>-->
     </simple-method>
 </simple-methods>