From 05ea446d7225feed63672854ce93dc0c47db95b4 Mon Sep 17 00:00:00 2001 From: Madhura Jayaratne Date: Fri, 22 May 2015 13:26:29 +0530 Subject: [PATCH] #4917 Changing time with datetime picker gives JS error Signed-off-by: Madhura Jayaratne --- js/tbl_change.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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", {