details: https://code.openbravo.com/erp/devel/pi/rev/44671c4c2901
changeset: 22144:44671c4c2901
user: Augusto Mauch <augusto.mauch <at> openbravo.com>
date: Wed Feb 26 10:20:31 2014 +0100
summary: Related to issue 25838:Avoids accessing a property of an undefined
object
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 d3337dfe6180 -r 44671c4c2901
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
Wed Feb 26 10:05:46 2014 +0100
+++
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-time.js
Wed Feb 26 10:20:31 2014 +0100
@@ -155,7 +155,7 @@
},
formSaved: function (request, response, data) {
var UTCOffsetInMiliseconds;
- if (this.getValue() !== data[this.name]) {
+ if (data[this.name] && this.getValue() !== data[this.name]) {
// it has not been converted to the local time yet, do it now
if (data[this.name].getFullYear() <= 1970) {
UTCOffsetInMiliseconds = OB.Utilities.Date.getUTCOffsetInMiliseconds();
------------------------------------------------------------------------------
Flow-based real-time traffic analytics software. Cisco certified tool.
Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
Customize your own dashboards, set traffic alerts and generate reports.
Network behavioral analysis & security monitoring. All-in-one tool.
http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits