svn commit: r628398 - in /ofbiz/trunk/applications/product: script/org/ofbiz/product/product/ProductServices.xml servicedef/services.xml webapp/catalog/product/ProductForms.xml

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

svn commit: r628398 - in /ofbiz/trunk/applications/product: script/org/ofbiz/product/product/ProductServices.xml servicedef/services.xml webapp/catalog/product/ProductForms.xml

mrisaliti
Author: mrisaliti
Date: Sat Feb 16 16:38:45 2008
New Revision: 628398

URL: http://svn.apache.org/viewvc?rev=628398&view=rev
Log:
Small changes to transfer to the Edit Product Page after duplication of the product (Part of issue OFBIZ-1633).

Modified:
    ofbiz/trunk/applications/product/script/org/ofbiz/product/product/ProductServices.xml
    ofbiz/trunk/applications/product/servicedef/services.xml
    ofbiz/trunk/applications/product/webapp/catalog/product/ProductForms.xml

Modified: ofbiz/trunk/applications/product/script/org/ofbiz/product/product/ProductServices.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/script/org/ofbiz/product/product/ProductServices.xml?rev=628398&r1=628397&r2=628398&view=diff
==============================================================================
--- ofbiz/trunk/applications/product/script/org/ofbiz/product/product/ProductServices.xml (original)
+++ ofbiz/trunk/applications/product/script/org/ofbiz/product/product/ProductServices.xml Sat Feb 16 16:38:45 2008
@@ -172,7 +172,7 @@
         <clone-value value-name="oldProduct" new-value-name="newProduct"/>
 
         <!-- set the productId, and write it to the datasource -->
-        <set from-field="parameters.newProductId" field="newProduct.productId"/>
+        <set from-field="parameters.productId" field="newProduct.productId"/>
         
         <!-- if requested, set the new internalName field -->
         <if-not-empty field-name="newInternalName" map-name="parameters">
@@ -205,7 +205,7 @@
             <find-by-and entity-name="ProductPrice" map-name="productFindContext" list-name="foundValues"/>
             <iterate entry-name="foundValue" list-name="foundValues">
                 <clone-value value-name="foundValue" new-value-name="newTempValue"/>
-                <set from-field="parameters.newProductId" field="newTempValue.productId"/>
+                <set from-field="parameters.productId" field="newTempValue.productId"/>
                 <create-value value-name="newTempValue"/>
             </iterate>
         </if-not-empty>
@@ -213,7 +213,7 @@
             <find-by-and entity-name="GoodIdentification" map-name="productFindContext" list-name="foundValues"/>
             <iterate entry-name="foundValue" list-name="foundValues">
                 <clone-value value-name="foundValue" new-value-name="newTempValue"/>
-                <set from-field="parameters.newProductId" field="newTempValue.productId"/>
+                <set from-field="parameters.productId" field="newTempValue.productId"/>
                 <create-value value-name="newTempValue"/>
             </iterate>
         </if-not-empty>
@@ -221,7 +221,7 @@
             <find-by-and entity-name="ProductContent" map-name="productFindContext" list-name="foundValues"/>
             <iterate entry-name="foundValue" list-name="foundValues">
                 <clone-value value-name="foundValue" new-value-name="newTempValue"/>
-                <set from-field="parameters.newProductId" field="newTempValue.productId"/>
+                <set from-field="parameters.productId" field="newTempValue.productId"/>
                 <create-value value-name="newTempValue"/>
             </iterate>
         </if-not-empty>
@@ -229,7 +229,7 @@
             <find-by-and entity-name="ProductCategoryMember" map-name="productFindContext" list-name="foundValues"/>
             <iterate entry-name="foundValue" list-name="foundValues">
                 <clone-value value-name="foundValue" new-value-name="newTempValue"/>
-                <set from-field="parameters.newProductId" field="newTempValue.productId"/>
+                <set from-field="parameters.productId" field="newTempValue.productId"/>
                 <create-value value-name="newTempValue"/>
             </iterate>
         </if-not-empty>
@@ -237,7 +237,7 @@
             <find-by-and entity-name="ProductAssoc" map-name="productFindContext" list-name="foundValues"/>
             <iterate entry-name="foundValue" list-name="foundValues">
                 <clone-value value-name="foundValue" new-value-name="newTempValue"/>
-                <set from-field="parameters.newProductId" field="newTempValue.productId"/>
+                <set from-field="parameters.productId" field="newTempValue.productId"/>
                 <create-value value-name="newTempValue"/>
             </iterate>
 
@@ -247,7 +247,7 @@
             </entity-and>
             <iterate entry-name="foundValue" list-name="foundValues">
                 <clone-value value-name="foundValue" new-value-name="newTempValue"/>
-                <set from-field="parameters.newProductId" field="newTempValue.productIdTo"/>
+                <set from-field="parameters.productId" field="newTempValue.productIdTo"/>
                 <create-value value-name="newTempValue"/>
             </iterate>
         </if-not-empty>
@@ -255,7 +255,7 @@
             <find-by-and entity-name="ProductAttribute" map-name="productFindContext" list-name="foundValues"/>
             <iterate entry-name="foundValue" list-name="foundValues">
                 <clone-value value-name="foundValue" new-value-name="newTempValue"/>
-                <set from-field="parameters.newProductId" field="newTempValue.productId"/>
+                <set from-field="parameters.productId" field="newTempValue.productId"/>
                 <create-value value-name="newTempValue"/>
             </iterate>
         </if-not-empty>
@@ -263,7 +263,7 @@
             <find-by-and entity-name="ProductFeatureAppl" map-name="productFindContext" list-name="foundValues"/>
             <iterate entry-name="foundValue" list-name="foundValues">
                 <clone-value value-name="foundValue" new-value-name="newTempValue"/>
-                <set from-field="parameters.newProductId" field="newTempValue.productId"/>
+                <set from-field="parameters.productId" field="newTempValue.productId"/>
                 <create-value value-name="newTempValue"/>
             </iterate>
         </if-not-empty>
@@ -280,7 +280,7 @@
                           What about the InventoryItemDetail entries?
                 -->
                 <clone-value value-name="foundValue" new-value-name="newTempValue"/>
-                <set from-field="parameters.newProductId" field="newTempValue.productId"/>
+                <set from-field="parameters.productId" field="newTempValue.productId"/>
                 <!-- this one is slightly different because it needs a new sequenced inventoryItemId -->
                 <sequenced-id-to-env sequence-name="InventoryItem" env-name="newTempValue.inventoryItemId"/>
                 <create-value value-name="newTempValue"/>

Modified: ofbiz/trunk/applications/product/servicedef/services.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/servicedef/services.xml?rev=628398&r1=628397&r2=628398&view=diff
==============================================================================
--- ofbiz/trunk/applications/product/servicedef/services.xml (original)
+++ ofbiz/trunk/applications/product/servicedef/services.xml Sat Feb 16 16:38:45 2008
@@ -64,7 +64,7 @@
     <service name="duplicateProduct" engine="simple"
                 location="org/ofbiz/product/product/ProductServices.xml" invoke="duplicateProduct" auth="true">
         <description>Duplicate a Product using a new productId</description>
-        <attribute name="newProductId" type="String" mode="IN" optional="false"/>
+        <attribute name="productId" type="String" mode="IN" optional="false"/>
         <attribute name="oldProductId" type="String" mode="IN" optional="false"/>
         <attribute name="newInternalName" type="String" mode="IN" optional="true"/>
         <attribute name="newProductName" type="String" mode="IN" optional="true"/>

Modified: ofbiz/trunk/applications/product/webapp/catalog/product/ProductForms.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/webapp/catalog/product/ProductForms.xml?rev=628398&r1=628397&r2=628398&view=diff
==============================================================================
--- ofbiz/trunk/applications/product/webapp/catalog/product/ProductForms.xml (original)
+++ ofbiz/trunk/applications/product/webapp/catalog/product/ProductForms.xml Sat Feb 16 16:38:45 2008
@@ -209,7 +209,7 @@
         header-row-style="header-row" default-table-style="basic-table">
         
         <field name="oldProductId"><hidden value="${productId}"/></field>
-        <field name="newProductId" title="${uiLabelMap.ProductDuplicateRemoveSelectedWithNewId}" map-name="dupProduct"><text size="20" maxlength="20"/></field>
+        <field name="productId" title="${uiLabelMap.ProductDuplicateRemoveSelectedWithNewId}" map-name="dupProduct"><text size="20" maxlength="20"/></field>
         <field name="newInternalName" title="${uiLabelMap.ProductInternalName}"><text size="30" maxlength="255"/></field>
         <field name="newProductName" title="${uiLabelMap.ProductProductName}"><text size="30" maxlength="60"/></field>
         <field name="newDescription" title="${uiLabelMap.ProductProductDescription}" widget-style="textAreaBox"><textarea cols="60" rows="2"/></field>