yusuketk %!s(int64=7) %!d(string=hai) anos
pai
achega
fe8559fff8
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      src/server/models/page.js

+ 4 - 1
src/server/models/page.js

@@ -1002,7 +1002,10 @@ module.exports = function(crowi) {
 
     await validateAppliedScope(user, grant, grantUserGroupId);
     page.applyScope(user, grant, grantUserGroupId);
-    page.updateTags(tags);
+
+    if (tags != null) {
+      page.updateTags(tags);
+    }
 
     let savedPage = await page.save();
     const newRevision = Revision.prepareRevision(savedPage, body, null, user, { format });