Problem/Motivation

When template whisperer field is attached to an entity form that doesn't have advanced details tab, it is not displayed.
This happens because `TemplateWhispererWidget` unconditionally puts form element in `advanced` group

Proposed resolution

Check if group exists and has necessary type

Remaining tasks

Write the patch
merge on 8.x-2.x (dev)

Comments

valthebald created an issue. See original summary.

valthebald’s picture

Status: Active » Needs review
StatusFileSize
new834 bytes
wengerk’s picture

Thanks for the contrib.
Let's tests it via Testbot first.

wengerk’s picture

Seems fine to me.
May I ask you why this change was necessary ? When did you have any issue when adding the TW in the advanced group ?

wengerk’s picture

Status: Needs review » Reviewed & tested by the community
valthebald’s picture

@wengerk we use template whisperer with paragraphs, both experimental and classic widgets don't have 'advanced' group.
I haven't tested, but I guess that inline entity forms also use less fieldsets than regular entity forms.

Other than that, thanks for the excellent module!

wengerk’s picture

StatusFileSize
new6.07 KB
new5.87 KB

Hey @valthebald,

I updated your fix to make it work with Inline-Form too & I added a better coverage of FieldWidget.
Can you review this one before merging in 8.2.x ?!

Thanks & have a great day.

wengerk’s picture

Status: Reviewed & tested by the community » Needs review
StatusFileSize
new425 bytes
new6.05 KB

Re-port whitout @kevin group ... sorry did it too quickly.

wengerk’s picture

wengerk’s picture

valthebald’s picture

Status: Needs review » Reviewed & tested by the community

@wengerk nice catch about inline entity form! Marking RTBC, thank you

  • wengerk committed c734ca7 on 8.x-2.x
    Issue #3008554 by wengerk, valthebald: Display widget in advanced group...
wengerk’s picture

Issue summary: View changes
Status: Reviewed & tested by the community » Fixed

Thanks for your works on this !

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.