Commits

Adam Gomaa committed a80cb61

Fix missing WikiLinks b/c self.version == 1 was failing.

  • Participants
  • Parent commits be2309e

Comments (0)

Files changed (1)

trac/wiki/model.py

         t = t or datetime.now(utc)
 
         if new_text:
+            self.version += 1
             self.env.db.wiki.insert(
-                {"name": self.name, "version": self.version + 1,
+                {"name": self.name, "version": self.version,
                  "time": t, "author": author, "ipnr": remote_addr,
                  "text": self.text, "comment": comment,
                  "readonly": self.readonly})