- πΊπΈUnited States beunerd Providence, Rhode Island
@lelkneralfaro
I'm having trouble reproducing. I think what you're saying is that when you've added the pseudo field to a particular display mode (e.g., "teaser", "full", etc.) via the UI/configuration then when you are viewing the entity (not editing it) you're seeing more than just the workflow buttons? I'm not seeing that on my end. Can you say a little more, maybe with a screenshot too?
- Status changed to Needs work
over 1 year ago 10:48pm 1 August 2023 - πΊπΈUnited States mlncn Minneapolis, MN, USA
@beunerd: In your commit 88eca1f0058 hook_entity_view() has only a check for
$display->getComponent('workflow_buttons')
) and that was since hard-coded to have an extra check for$view_mode === 'full'
as a temporary workaround to prevent this issue (i think). - πΊπΈUnited States mlncn Minneapolis, MN, USA
I see you've reverted π workflow_buttons should only be loaded/load edit form when relevant Fixed but multiple people have seen related issues so i feel like there is some issue here.
Maybe only for user 1?
- Status changed to Postponed: needs info
over 1 year ago 11:17pm 1 August 2023 - πΊπΈUnited States beunerd Providence, Rhode Island
@mlncn
Re: "as a temporary workaround to prevent this issue"
I'm still not able to reproduce this issue, so I wouldn't even be able to determine whether the proposed fix in https://www.drupal.org/project/workflow_buttons/issues/3328538 π workflow_buttons should only be loaded/load edit form when relevant Fixed (which I reverted) would be relevant.
Re: "multiple people have seen related issues so i feel like there is some issue here."
Can you point me to the related issues? Again, as per what I wrote in https://www.drupal.org/project/workflow_buttons/issues/3328538 π workflow_buttons should only be loaded/load edit form when relevant Fixed as I understand it the module works just fine in terms of showing/hiding the pseudo field workflow buttons on node/entity view modes. That is, you should disable it in the display modes you want it not to appear. And/or use Drupal's standard "workflows" module permissions to control use/visibility.
I'm going to mark this back as needs more info until we know that there is a problem and how to reproduce it. Otherwise it's going to sit here in "needs work" which we don't know that it does.
- π¨πΏCzech Republic David Urban
I confirm the problem exists. In my case version 1.0.0-beta5 causes taxonomy term view to show full node edit forms. Downgrading helps. If you need any more info I can provide, have the site running.
- π―π΅Japan ultrabob Japan
@david-urban I believe the MR in https://www.drupal.org/project/workflow_buttons/issues/3386885 β¨ Show buttons on Custom Entity view pages (replacement for Moderation control pseudofield) Needs review also addresses this issue, by no longer filtering which routes we should remove the extra form fields for. Could you try applying this change, and see if that fixes the issue?
- π―π΅Japan ultrabob Japan
Actually, it is on the dev branch, so you could require the dev branch and see if the issue has been resolved.
- π¨πΏCzech Republic David Urban
@ultrabob sorry for the delay. I have tested the dev version (18 Sep 2023 at 18:55 CEST) and the problem seems to be fixed. I believe we can close this as a duplicate. Thank you for solving the issue.
- Status changed to Closed: duplicate
about 1 year ago 6:24pm 2 November 2023 - π―π΅Japan ultrabob Japan
Marking as a duplicate since the fix is already on that other ticket. Thanks @david-urban!
- πΊπΈUnited States Katy Jockelson
After getting the latest dev version (8.x-1.x-dev) I'm still fieldsets on the node view (which are configured to show on form display) showing up above the Workflow Buttosn within the form markup on the page.
- π―π΅Japan ultrabob Japan
Thanks Katy,
Without investigating yet, I think that makes sense. The code that removes the fields that shouldnβt be there doesnβt impact the structure of the form where fieldsets are handled.
Iβll try to follow a new issue for that tomorrow and see if I can get it fixed.