Commit 56ff100b authored by Sebastien Robin's avatar Sebastien Robin

Revert "do not change id when reference is set"

This change should be commited again once installation
problems are solved

This reverts commit 43807.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@43814 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ff801197
...@@ -208,7 +208,7 @@ class TestTaskReporting(ERP5ReportTestCase): ...@@ -208,7 +208,7 @@ class TestTaskReporting(ERP5ReportTestCase):
report_section_list = self.getReportSectionList( report_section_list = self.getReportSectionList(
self.portal.project_module.Project_1, self.portal.project_module.Project_1,
'Project_viewMonthlyReport') 'Project_viewMonthlyReport')
self.assertEquals(2, len(report_section_list)) self.assertEquals(1, len(report_section_list))
line_list = self.getListBoxLineList(report_section_list[0]) line_list = self.getListBoxLineList(report_section_list[0])
data_line_list = [l for l in line_list if l.isDataLine()] data_line_list = [l for l in line_list if l.isDataLine()]
......
...@@ -77,4 +77,11 @@ def IdAsReferenceMixin(suffix): ...@@ -77,4 +77,11 @@ def IdAsReferenceMixin(suffix):
return reference return reference
return default return default
def _setReference(self, value):
self.__dict__.pop('default_reference', None) # BBB
self.setId(value + suffix)
security.declareProtected(Permissions.ModifyPortalContent, 'setReference')
setReference = _setReference
return IdAsReferenceMixin return IdAsReferenceMixin
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