[calendar] microfix
authorDavid Baz Fayos <david.baz@openbravo.com>
Fri, 18 Jan 2013 15:35:07 +0100
changeset 19512 03417c0b12f8
parent 19511 4b041a2cb999
child 19513 cd4a68deff06
[calendar] microfix
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 Jan 17 22:05:46 2013 +0100
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-time.js	Fri Jan 18 15:35:07 2013 +0100
@@ -355,9 +355,9 @@
     if (this.isVisible()) {
       return;
     }
-    if (this.formItem && this.formItem.relativeTo) {
-      this.formItem.eventParent.getValue(this.formItem.relativeTo);
-      timeRef = this.formItem.eventParent.getValue(this.formItem.relativeTo);
+    if (this.formItem && this.formItem.relativeField) {
+      this.formItem.eventParent.getValue(this.formItem.relativeField);
+      timeRef = this.formItem.eventParent.getValue(this.formItem.relativeField);
       if (timeRef) {
         timeRef = this.normalizeDateObj(timeRef);
         this.timeReference = timeRef;
@@ -477,7 +477,7 @@
       this.timeGranularity = this.formItem.timeGranularity;
     }
 
-    if (this.formItem && this.formItem.relativeTo && this.showDiffText !== false) {
+    if (this.formItem && this.formItem.relativeField && this.showDiffText !== false) {
       this.showDiffText = true;
     }