You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by jl...@apache.org on 2014/05/31 22:14:55 UTC
svn commit: r1598918 - in /ofbiz/branches/release12.04: ./
applications/product/webapp/catalog/WEB-INF/controller.xml
applications/product/widget/catalog/StoreForms.xml
applications/product/widget/catalog/StoreScreens.xml
Author: jleroux
Date: Sat May 31 20:14:54 2014
New Revision: 1598918
URL: http://svn.apache.org/r1598918
Log:
"Applied fix from trunk for revision: 1598913 "
------------------------------------------------------------------------
r1598913 | jleroux | 2014-05-31 22:10:54 +0200 (sam. 31 mai 2014) | 8 lignes
A patche from Olivier Heintz for "ProductStoreFacilities page does not refresh information after actions are performed" https://issues.apache.org/jira/browse/OFBIZ-5408
The ProductStoreFacilities page does not refresh when actions are performed. When adding or deleting a facility from the store, the result of either action is not reflected on the page even though both are performed. A loading icon appears after clicking action buttons/links so AJAX is probably being used.
Olivier:
bug corrections :
1) areaId was wrong in on-event for edit and in delete button in list
2) replace wrong view-map ListProductStoreFacilityFormOnly by ListProductStoreFacility
------------------------------------------------------------------------
Modified:
ofbiz/branches/release12.04/ (props changed)
ofbiz/branches/release12.04/applications/product/webapp/catalog/WEB-INF/controller.xml
ofbiz/branches/release12.04/applications/product/widget/catalog/StoreForms.xml
ofbiz/branches/release12.04/applications/product/widget/catalog/StoreScreens.xml
Propchange: ofbiz/branches/release12.04/
------------------------------------------------------------------------------
Merged /ofbiz/trunk:r1598913
Modified: ofbiz/branches/release12.04/applications/product/webapp/catalog/WEB-INF/controller.xml
URL: http://svn.apache.org/viewvc/ofbiz/branches/release12.04/applications/product/webapp/catalog/WEB-INF/controller.xml?rev=1598918&r1=1598917&r2=1598918&view=diff
==============================================================================
--- ofbiz/branches/release12.04/applications/product/webapp/catalog/WEB-INF/controller.xml (original)
+++ ofbiz/branches/release12.04/applications/product/webapp/catalog/WEB-INF/controller.xml Sat May 31 20:14:54 2014
@@ -2334,7 +2334,7 @@ under the License.
</request-map>
<request-map uri="ListProductStoreFacilityFormOnly">
<security https="true" auth="true"/>
- <response name="success" type="view" value="ListProductStoreFacilityFormOnly"/>
+ <response name="success" type="view" value="ListProductStoreFacility"/>
</request-map>
<request-map uri="editProductStoreFacility"><security https="true" auth="true"/>
<response name="success" type="view" value="EditProductStoreFacility"/>
@@ -2354,8 +2354,8 @@ under the License.
<request-map uri="deleteProductStoreFacility">
<security https="true" auth="true"/>
<event type="service" invoke="deleteProductStoreFacility"/>
- <response name="success" type="view" value="ListProductStoreFacilityFormOnly"/>
- <response name="error" type="view" value="ListProductStoreFacilityFormOnly"/>
+ <response name="success" type="view" value="ListProductStoreFacility"/>
+ <response name="error" type="view" value="ListProductStoreFacility"/>
</request-map>
<!-- ================ Keyword Thesaurus Requests ================= -->
@@ -3168,7 +3168,6 @@ under the License.
<view-map name="EditProductStoreVendorShipments" type="screen" page="component://product/widget/catalog/StoreScreens.xml#EditProductStoreVendorShipments"/>
<view-map name="ProductStoreFacilities" page="component://product/widget/catalog/CommonScreens.xml#ProductStoreFacilities" type="screen"/>
<view-map name="ListProductStoreFacility" page="component://product/widget/catalog/StoreScreens.xml#ListProductStoreFacility" type="screen"/>
- <view-map name="ListProductStoreFacilityFormOnly" page="component://product/widget/catalog/StoreScreens.xml#ListProductStoreFacilityFormOnly" type="screen"/>
<view-map name="EditProductStoreFacility" page="component://product/widget/catalog/StoreScreens.xml#EditProductStoreFacility" type="screen"/>
<view-map name="EditVendorProduct" type="screen" page="component://product/widget/catalog/ProductScreens.xml#EditVendorProduct"/>
<view-map name="EditKeywordThesaurus" type="screen" page="component://product/widget/catalog/ThesaurusScreens.xml#EditKeywordThesaurus"/>
Modified: ofbiz/branches/release12.04/applications/product/widget/catalog/StoreForms.xml
URL: http://svn.apache.org/viewvc/ofbiz/branches/release12.04/applications/product/widget/catalog/StoreForms.xml?rev=1598918&r1=1598917&r2=1598918&view=diff
==============================================================================
--- ofbiz/branches/release12.04/applications/product/widget/catalog/StoreForms.xml (original)
+++ ofbiz/branches/release12.04/applications/product/widget/catalog/StoreForms.xml Sat May 31 20:14:54 2014
@@ -127,7 +127,7 @@ under the License.
<field name="fromDate" ><display type="date-time" /></field>
<field name="thruDate" ><display type="date-time" /></field>
<field name="deleteLink" title=" " >
- <hyperlink target="javascript:ajaxUpdateArea('PrdStoreFacilityMgmtArea', 'deleteProductStoreFacility', 'productStoreId=${productStoreId}&facilityId=${facilityId}&fromDate=${fromDate}');"
+ <hyperlink target="javascript:ajaxUpdateArea('PP_ProductStoreFacilityPrdStoreFacilityMgmt00001', 'deleteProductStoreFacility', 'productStoreId=${productStoreId}&facilityId=${facilityId}&fromDate=${fromDate}');"
target-type="plain" request-confirmation="true" image-location="/images/mini-trash.png" image-title="${uiLabelMap.CommonRemove}">
</hyperlink>
</field>
@@ -151,6 +151,6 @@ under the License.
<field name="submitButton" title="${groovy: productStoreFacility == null ? uiLabelMap.CommonAdd : uiLabelMap.CommonUpdate}" widget-style="smallSubmit">
<submit button-type="button"/>
</field>
- <on-event-update-area event-type="submit" area-id="PrdStoreFacilityMgmtArea" area-target="ListProductStoreFacilityFormOnly?portalPortletId=PrdStoreFacilityMgmt&productStoreId=${parameters.productStoreId}"/>
+ <on-event-update-area event-type="submit" area-id="PP_ProductStoreFacilityPrdStoreFacilityMgmt00001" area-target="ListProductStoreFacilityFormOnly?portalPortletId=PrdStoreFacilityMgmt&productStoreId=${parameters.productStoreId}"/>
</form>
</forms>
Modified: ofbiz/branches/release12.04/applications/product/widget/catalog/StoreScreens.xml
URL: http://svn.apache.org/viewvc/ofbiz/branches/release12.04/applications/product/widget/catalog/StoreScreens.xml?rev=1598918&r1=1598917&r2=1598918&view=diff
==============================================================================
--- ofbiz/branches/release12.04/applications/product/widget/catalog/StoreScreens.xml (original)
+++ ofbiz/branches/release12.04/applications/product/widget/catalog/StoreScreens.xml Sat May 31 20:14:54 2014
@@ -564,6 +564,8 @@ under the License.
<set field="titleProperty" value="ProductStoreFacilityAssocList"/>
<set field="tabButtonItem" value="EditProductStoreFacilities"/>
<set field="productStoreId" from-field="parameters.productStoreId"/>
+ <property-map resource="ProductUiLabels" map-name="uiLabelMap" global="true"/>
+ <property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
<set field="portalPageId" value="ProductStoreFacility"/>
</actions>
<widgets>