修正自动完成

This commit is contained in:
thinkphp
2016-02-16 16:15:14 +08:00
parent 5f0abf0818
commit 3c47792c90

View File

@@ -1088,7 +1088,7 @@ class Model
$options['exists_fill'] = isset($options['exists_fill']) ? $options['exists_fill'] : [];
foreach ($rules as $key => $val) {
// 数据自动填充
$this->autoOperation($key, $val, $data);
$this->autoOperation($key, $val, $data, $options);
}
$this->options['auto'] = null;
}