You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ja...@apache.org on 2021/01/12 03:13:11 UTC
[ofbiz-framework] branch trunk updated: Fixed: Date picker not
initialised in ajax-called form (OFBIZ-12097)
This is an automated email from the ASF dual-hosted git repository.
jamesyong pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git
The following commit(s) were added to refs/heads/trunk by this push:
new 25adbd2 Fixed: Date picker not initialised in ajax-called form (OFBIZ-12097)
25adbd2 is described below
commit 25adbd2088bd2b9172dc94264d03cd9e9eed58f4
Author: James Yong <ja...@apache.org>
AuthorDate: Tue Jan 12 11:11:01 2021 +0800
Fixed: Date picker not initialised in ajax-called form (OFBIZ-12097)
Fixed regression. Manual entry is cleared after moving to next field.
Thanks: Olivier for reporting
---
themes/common-theme/webapp/common/js/util/OfbizUtil.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/themes/common-theme/webapp/common/js/util/OfbizUtil.js b/themes/common-theme/webapp/common/js/util/OfbizUtil.js
index dcffe7d..016a488 100644
--- a/themes/common-theme/webapp/common/js/util/OfbizUtil.js
+++ b/themes/common-theme/webapp/common/js/util/OfbizUtil.js
@@ -382,7 +382,7 @@ function initDateTimePicker(self) {
ofbizTime = "yyyy-MM-dd HH:mm:ss"
}
var newValue = "";
- var dateObj = Date.parseExact(self.value, dateFormat);
+ var dateObj = Date.parseExact(value, dateFormat);
if (value != "" && dateObj !== null) {
newValue = dateObj.toString(ofbizTime);
} else { // invalid input