diff --git a/bt5/erp5_web_shadir/ExtensionTemplateItem/ShaDir.py b/bt5/erp5_web_shadir/ExtensionTemplateItem/ShaDir.py index 3207c077bd904b70e1db553112d19660537a587f..9bbf638bef4844fa3a24afca63ff49be7e1f395a 100644 --- a/bt5/erp5_web_shadir/ExtensionTemplateItem/ShaDir.py +++ b/bt5/erp5_web_shadir/ExtensionTemplateItem/ShaDir.py @@ -66,7 +66,9 @@ def WebSection_getDocumentValue(self, key, portal=None, language=None,\ # Return the SIGNATURE file, if the document exists. if data_set is not None: document_list = [json.loads(document.getData()) \ - for document in data_set.getFollowUpRelatedValueList()] + for document in portal.portal_catalog( + follow_up_uid=data_set.getUid(), + validation_state='published')] temp_file = newTempFile(self, '%s.txt' % key) temp_file.setData(json.dumps(document_list)) diff --git a/bt5/erp5_web_shadir/bt/revision b/bt5/erp5_web_shadir/bt/revision index d1cbcfa54043559204a5b30b0d1b808dfe9cb552..832332893ab752cd7a530a0d45c00fdf2f436453 100644 --- a/bt5/erp5_web_shadir/bt/revision +++ b/bt5/erp5_web_shadir/bt/revision @@ -1 +1 @@ -66 \ No newline at end of file +67 \ No newline at end of file