diff options
author | Madhura Jayaratne <madhura.cj@gmail.com> | 2015-05-22 10:56:29 +0300 |
---|---|---|
committer | Madhura Jayaratne <madhura.cj@gmail.com> | 2015-05-22 10:56:29 +0300 |
commit | 05ea446d7225feed63672854ce93dc0c47db95b4 (patch) | |
tree | 30444c01268701972bb7326e4cc6a138d5b1e033 /js/tbl_change.js | |
parent | aeecb3e370a7e75c7b16b6b5cd5e98a83be16c27 (diff) |
#4917 Changing time with datetime picker gives JS error
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
Diffstat (limited to 'js/tbl_change.js')
-rw-r--r-- | js/tbl_change.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/tbl_change.js b/js/tbl_change.js index ce67b3c5b1..80c6c46732 100644 --- a/js/tbl_change.js +++ b/js/tbl_change.js @@ -219,7 +219,7 @@ function verificationsAfterFieldChange(urlField, multi_edit, theType) else if (theType.substring(0,7) === "varchar") { charExceptionHandling = theType.substring(8,9); } - if (target.name.substring(0, 6) === "fields") { + if (target.name && target.name.substring(0, 6) === "fields") { // validate for date time if (theType == "datetime" || theType == "time" || theType == "date" || theType == "timestamp") { $this_input.rules("add", { |