Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix analysis template view shows hidden subfields for sample partitions #2439

Merged
merged 2 commits into from
Dec 5, 2023

Conversation

ramonski
Copy link
Contributor

@ramonski ramonski commented Dec 4, 2023

Description of the issue/feature this PR addresses

This PR fixes an issue where hidden subfields are displayed for analysis template view

Current behavior before PR

Hidden UID fields are rendered in view:

ARTemplate View

Desired behavior after PR is merged

Hidden fields are not rendered and improved subfield rendering:

ARTemplate view improved

--
I confirm I have tested this PR thoroughly and coded it according to PEP8
and Plone's Python styleguide standards.

<ul class="list-inline m-0">
<tal:loop tal:repeat="subfield subfields">
<li tal:define="value python:field.getViewFor(context, idx, subfield, innerJoin)"
tal:condition="python:hidden.get(subfield, False) is False"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To me, python: not hidden.get(subfield, False), would be clearer. I guess a matter of taste!.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I guess so as well 😄

@xispa xispa merged commit b3b2d31 into 2.x Dec 5, 2023
2 checks passed
@xispa xispa deleted the fix-artemplate-view-shows-hidden-subfields branch December 5, 2023 11:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

2 participants