@azrico/webobject 1.4.57 → 1.4.59
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.
|
@@ -323,6 +323,7 @@ var WebObject = /*#__PURE__*/function (_SimpleObject) {
|
|
|
323
323
|
formatKeys = use_formats[formatname];
|
|
324
324
|
if (Array.isArray(formatKeys)) {
|
|
325
325
|
formatKeys.forEach(function (fk) {
|
|
326
|
+
if (typeof dlt[fk] === "number") dlt[fk] = String(dlt[fk]);
|
|
326
327
|
if (typeof dlt[fk] !== "string") return;
|
|
327
328
|
dlt[fk] = (0, _string.string_do)(formatname, dlt[fk]);
|
|
328
329
|
});
|
|
@@ -890,7 +890,7 @@ var SimpleObject = /*#__PURE__*/function (_MapableObject) {
|
|
|
890
890
|
key: "hasIllegalChanges",
|
|
891
891
|
value: function hasIllegalChanges(referenceObject, changesObject, updaterUser) {
|
|
892
892
|
var __protectedProperties = (0, _object.object_getStatic)(referenceObject, "__protectedProperties");
|
|
893
|
-
if (
|
|
893
|
+
if ((0, _object.object_isEmpty)(__protectedProperties)) return false;
|
|
894
894
|
var referenceUser = (0, _object.object_isClass)(referenceObject) ? (0, _object.object_get)(changesObject, "__user", "_creator") : (0, _object.object_get)(referenceObject, "__user", "_creator");
|
|
895
895
|
if (Boolean(SimpleObject.getID(referenceUser) == SimpleObject.getID(updaterUser))) {
|
|
896
896
|
return false;
|