svn commit: r789286 - in /ofbiz/trunk/applications/product: webapp/catalog/WEB-INF/actions/product/BestProducts.groovy widget/catalog/ProductScreens.xml

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

svn commit: r789286 - in /ofbiz/trunk/applications/product: webapp/catalog/WEB-INF/actions/product/BestProducts.groovy widget/catalog/ProductScreens.xml

mor-2
Author: mor
Date: Mon Jun 29 11:01:16 2009
New Revision: 789286

URL: http://svn.apache.org/viewvc?rev=789286&view=rev
Log:
Now both portlets on order main page show date in same format.

Modified:
    ofbiz/trunk/applications/product/webapp/catalog/WEB-INF/actions/product/BestProducts.groovy
    ofbiz/trunk/applications/product/widget/catalog/ProductScreens.xml

Modified: ofbiz/trunk/applications/product/webapp/catalog/WEB-INF/actions/product/BestProducts.groovy
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/webapp/catalog/WEB-INF/actions/product/BestProducts.groovy?rev=789286&r1=789285&r2=789286&view=diff
==============================================================================
--- ofbiz/trunk/applications/product/webapp/catalog/WEB-INF/actions/product/BestProducts.groovy (original)
+++ ofbiz/trunk/applications/product/webapp/catalog/WEB-INF/actions/product/BestProducts.groovy Mon Jun 29 11:01:16 2009
@@ -88,4 +88,6 @@
     itr++;
 }
 
-context.bestSellingProducts= topSellingProducts;
\ No newline at end of file
+context.bestSellingProducts = topSellingProducts;
+
+context.now = UtilDateTime.toDateString(UtilDateTime.nowDate());
\ No newline at end of file

Modified: ofbiz/trunk/applications/product/widget/catalog/ProductScreens.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/widget/catalog/ProductScreens.xml?rev=789286&r1=789285&r2=789286&view=diff
==============================================================================
--- ofbiz/trunk/applications/product/widget/catalog/ProductScreens.xml (original)
+++ ofbiz/trunk/applications/product/widget/catalog/ProductScreens.xml Mon Jun 29 11:01:16 2009
@@ -1821,11 +1821,10 @@
         <section>
             <actions>
                 <set field="filterDate" type="Timestamp" from-field="nowTimestamp"/>
-                <set field="date" type="Date" from-field="nowTimestamp"/>
                 <script location="component://product/webapp/catalog/WEB-INF/actions/product/BestProducts.groovy"/>
             </actions>
             <widgets>
-                <screenlet title="${uiLabelMap.ProductBestSellingProductsOf} ${date}">
+                <screenlet title="${uiLabelMap.ProductBestSellingProductsOf} ${now}">
                     <section>
                         <condition>
                             <not>