doomiwork 3.7.8 → 3.7.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "doomiwork",
3
- "version": "3.7.8",
3
+ "version": "3.7.9",
4
4
  "description": "doomisoft nodejs web framework",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -53,7 +53,7 @@ class ViewHelper {
53
53
  ////body中没有这个属性
54
54
  //&& element.ignoreundefined == true
55
55
  if (postValue === undefined ){
56
- if ((doWhat == 'update' && !element.required) ||
56
+ if ((doWhat == 'update' && !element.required && !element.default && !element.nullValue) ||
57
57
  (doWhat == 'create' && !element.required && !element.default && !element.nullValue))
58
58
  continue;
59
59
  }