details:   https://code.openbravo.com/erp/devel/pi/rev/d17c2694db1c
changeset: 28089:d17c2694db1c
user:      Carlos Aristu <carlos.aristu <at> openbravo.com>
date:      Wed Dec 02 11:13:07 2015 +0100
summary:   related to issue 27240: added missing check for date parameters

The date parameters has their own method to set their value properly. This is 
now being taken into account in the setValueProgrammatically method.

diffstat:

 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/process/ob-parameter-window-form.js
 |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 9b3efdffbb5f -r d17c2694db1c 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/process/ob-parameter-window-form.js
--- 
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/process/ob-parameter-window-form.js
      Wed Dec 02 10:33:15 2015 +0100
+++ 
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/process/ob-parameter-window-form.js
      Wed Dec 02 11:13:07 2015 +0100
@@ -38,8 +38,12 @@
 
   setItems: function (itemList) {
     itemList.forEach(function (item) {
-      item.setValueProgrammatically = function () {
-        this.Super('setValue', arguments);
+      item.setValueProgrammatically = function (value) {
+        if (this.setDateParameterValue) {
+          this.setDateParameterValue(value);
+        } else if (this.setValue) {
+          this.setValue(value);
+        }
         if (this.onChangeFunction && this.view && this.view.theForm) {
           this.view.theForm.handleItemChange(item);
         }

------------------------------------------------------------------------------
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140
_______________________________________________
Openbravo-commits mailing list
Openbravo-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to