details:   https://code.openbravo.com/erp/devel/pi/rev/30630ff35104
changeset: 22641:30630ff35104
user:      David Baz Fayos <david.baz <at> openbravo.com>
date:      Thu Mar 06 16:22:11 2014 +0100
summary:   Fixed issue 25913: 'Time' inputs content now can be erased

diffstat:

 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-time.js
 |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 2e659cd9b4e5 -r 30630ff35104 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-time.js
--- 
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-time.js
        Thu Mar 06 14:11:47 2014 +0100
+++ 
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-time.js
        Thu Mar 06 16:22:11 2014 +0100
@@ -52,7 +52,7 @@
 
   mapDisplayToValue: function (value) {
     var newValue = value;
-    if (Object.prototype.toString.call(newValue) === '[object String]') {
+    if (newValue && Object.prototype.toString.call(newValue) === '[object 
String]') {
       newValue = isc.Time.parseInput(newValue);
       if (this.isAbsoluteTime) {
         // In the case of an absolute time, the time needs to be converted in 
order to avoid the UTC conversion

------------------------------------------------------------------------------
Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce.
With Perforce, you get hassle-free workflows. Merge that actually works. 
Faster operations. Version large binaries.  Built-in WAN optimization and the
freedom to use Git, Perforce or both. Make the move to Perforce.
http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to