Skip to content

Commit f486f38

Browse files
authored
Merge pull request #261 from collective/export-relations-multilanguage
Use "unrestrictedSearchResults" for relation path queries
2 parents 843a772 + 09d1f75 commit f486f38

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

src/collective/exportimport/export_other.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -196,13 +196,11 @@ def get_all_references(self, debug=False, include_linkintegrity=False):
196196
logger.exception("Cannot export relation %s, skipping", rel)
197197
continue
198198
if rel_from_path_and_rel_to_path:
199-
from_brain = portal_catalog(
199+
from_brain = portal_catalog.unrestrictedSearchResults(
200200
path=dict(query=rel.from_path, depth=0),
201-
Language="all",
202201
)
203-
to_brain = portal_catalog(
202+
to_brain = portal_catalog.unrestrictedSearchResults(
204203
path=dict(query=rel.to_path, depth=0),
205-
Language="all",
206204
)
207205
if len(from_brain) > 0 and len(to_brain) > 0:
208206
item = {

0 commit comments

Comments
 (0)