Skip to content

Commit

Permalink
fix(opensearch): aggregate page content by sequencing pageelements' s…
Browse files Browse the repository at this point in the history
…tandard_html (#281)

Ref: 936b091
#278
  • Loading branch information
drfho authored May 30, 2024
1 parent de3f737 commit 7827358
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Products/zms/ZMSZCatalogAdapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,11 +362,8 @@ def get_attr_data(self, node, d):
try:
# ZMSFile.standard_html will work in get_file.
if not (node.meta_id == 'ZMSFile' and attr_id == 'standard_html'):
if attr_id == 'standard_html' and request.get('ZMS_INSERT', None) and node.isPage():
# ZMS_INSERT Page: attr('standard_html') does not work.
if attr_id == 'standard_html' and node.isPage():
for child_node in node.getObjChildren('e',request,self.PAGEELEMENTS):
# value += child_node.getBodyContent(request) # This would not work.
# Explicitly call ob-method to get the correct standard_html:
value += self.getMetaobjAttr(child_node.meta_id, 'standard_html')['ob'](zmscontext=child_node)
else:
value = node.attr(attr_id)
Expand Down

0 comments on commit 7827358

Please sign in to comment.