Commit 2922c72e authored by Christophe Dumez's avatar Christophe Dumez

- Save business template before build only if state is 'draft'


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@8607 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 790100c6
......@@ -1082,6 +1082,7 @@ class SubversionTool(BaseTool, UniqueObject, Folder):
and do svn add/del stuff comparing it
to local working copy
"""
if business_template.getBuildingState() == 'draft':
business_template.edit()
business_template.build()
svn_path = self._getWorkingPath(self.getSubversionPath(business_template) \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment