From: Ɓukasz Rekucki Date: Sun, 27 Sep 2009 22:06:46 +0000 (+0200) Subject: Fixed critical bug: new parts not added to version control after creation. X-Git-Url: https://git.mdrn.pl/redakcja.git/commitdiff_plain/cde981363740cf6907d3a3133e4ea9945b724e04?ds=sidebyside;hp=--cc Fixed critical bug: new parts not added to version control after creation. --- cde981363740cf6907d3a3133e4ea9945b724e04 diff --git a/apps/api/handlers/library_handlers.py b/apps/api/handlers/library_handlers.py index ae61389a..c5666dd0 100644 --- a/apps/api/handlers/library_handlers.py +++ b/apps/api/handlers/library_handlers.py @@ -268,6 +268,8 @@ class DocumentTextHandler(BaseHandler): f.write(json.dumps(includes)) f.close() + lib._fileadd(resolve('parts')) + # update the parts cache PartCache.update_cache(docid, current.owner,\ stored_includes, includes) @@ -436,4 +438,4 @@ class MergeHandler(BaseHandler): "parent_user_resivion": udoc.revision, "parent_revision": doc.revision, "revision": udoc.revision, - }) \ No newline at end of file + })