* The field is seted when it is null.

This commit is contained in:
daitingting
2023-10-26 05:40:16 +00:00
parent c16c654268
commit c90f1d8949
+1 -1
View File
@@ -1159,7 +1159,7 @@ class baseDAO
* 如果没数据中没有该字段,直接返回。
* If no this field in the data, return.
**/
if(!isset($this->sqlobj->data->$fieldName)) return $this;
if(!is_null($this->sqlobj->data->$fieldName) && !isset($this->sqlobj->data->$fieldName)) return $this;
/* 设置字段值。 */
/* Set the field label and value. */