Skip to content

Commit

Permalink
Avoid acquisition in find-broken-links view when checking blocks.
Browse files Browse the repository at this point in the history
  • Loading branch information
cekk committed Sep 23, 2024
1 parent 65534ee commit d03293b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ Changelog
5.5.5 (unreleased)
------------------

- Nothing changed yet.
- Avoid acquisition in find-broken-links view when checking blocks.
[cekk]


5.5.4 (2024-09-23)
Expand Down
2 changes: 1 addition & 1 deletion src/redturtle/volto/browser/find_broken_links.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def check_links_on_contents(self):
item = brain.getObject()
aq_base_obj = aq_base(item)

blocks = getattr(item, "blocks", {})
blocks = getattr(aq_base_obj, "blocks", {})
if blocks:
if self.check_blocks_broken_links(data=blocks):
res.append(brain.getURL())
Expand Down

0 comments on commit d03293b

Please sign in to comment.