1. Thomas Waldmann
  2. moin-2.0

Commits

Ashutosh Singla  committed 1299296

Solves 361 Rename uses comment from previous meta

  • Participants
  • Parent commits e9d25b2
  • Branches default

Comments (0)

Files changed (1)

File MoinMoin/items/__init__.py

View file
         """
         raise NotImplementedError
 
-    def _save(self, meta, data=None, name=None, action=u'SAVE', contenttype_guessed=None, comment=u'',
+    def _save(self, meta, data=None, name=None, action=u'SAVE', contenttype_guessed=None, comment=None,
               overwrite=False, delete=False):
         backend = flaskg.storage
         storage_item = backend[self.name]
         else:
             meta[NAME] = [name]
 
-        if comment:
+        if comment is not None:
             meta[COMMENT] = unicode(comment)
 
         if not overwrite and REVID in meta: