not-node 6.3.30 → 6.3.31
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 +1 -1
- package/src/form/form.js +2 -2
- package/src/model/default.js +5 -1
- package/src/model/versioning.js +1 -1
package/package.json
CHANGED
package/src/form/form.js
CHANGED
|
@@ -186,7 +186,7 @@ class Form {
|
|
|
186
186
|
);
|
|
187
187
|
if (!validationResult.clean) {
|
|
188
188
|
throw new notValidationError(
|
|
189
|
-
"not-
|
|
189
|
+
"not-node:form_validation_error",
|
|
190
190
|
validationResult.getReport(),
|
|
191
191
|
null,
|
|
192
192
|
data
|
|
@@ -305,7 +305,7 @@ class Form {
|
|
|
305
305
|
throw e;
|
|
306
306
|
} else {
|
|
307
307
|
throw new notError(
|
|
308
|
-
"
|
|
308
|
+
"not-node:form_validation_error",
|
|
309
309
|
{
|
|
310
310
|
FORM_NAME: this.#FORM_NAME,
|
|
311
311
|
PROTO_FIELDS: this.#PROTO_FIELDS,
|
package/src/model/default.js
CHANGED
|
@@ -394,7 +394,11 @@ function close(data = undefined) {
|
|
|
394
394
|
}
|
|
395
395
|
|
|
396
396
|
function saveNewVersion() {
|
|
397
|
-
return routine.update(
|
|
397
|
+
return routine.update(
|
|
398
|
+
this.constructor,
|
|
399
|
+
{ _id: this._id },
|
|
400
|
+
this.toObject({ minimize: false })
|
|
401
|
+
);
|
|
398
402
|
}
|
|
399
403
|
|
|
400
404
|
module.exports.thisMethods = {
|