浏览代码

cdb-types: fix null value

lviguier 1 年之前
父节点
当前提交
a84c6894cd
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      hide/comp/cdb/Cell.hx

+ 5 - 0
hide/comp/cdb/Cell.hx

@@ -1436,6 +1436,8 @@ class Cell {
 							var sel = paramValue.find(":selected");
 							if (sel.val() != 0)
 								stringValue += sel.text();
+							else
+								stringValue += "null";
 						}
 						else if (paramValue.is("div")) {
 							// Case where the param value is another cdbType
@@ -1451,6 +1453,9 @@ class Cell {
 					stringValue += ')';
 				}
 			}
+			else {
+				stringValue = "null";
+			}
 
 			parentEl.empty();