Problem/Motivation

Surprised i couldnt find a duplicate of this but it isn't just me, correct? The UI for this is busted. It happens on a few project sites i have on the go which range from D9.5 to D10.2; but also just tried on a vanilla fresh install of D10.2.

So when adding the field it is required to go through edit field 4 times to set everything:
- add field, it crashes out of this as soon as a view is selected (field gets added; but selected view is not saved)
- edit to set view, save
- edit again to set display, save
- edit again to set args, save

CommentFileSizeAuthor
#5 broken-field-ui-3455508-5.patch1.02 KBab.shakir
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

liquidcms created an issue. See original summary.

ab.shakir made their first commit to this issue’s fork.

ab.shakir’s picture

Assigned: Unassigned » ab.shakir

ab.shakir’s picture

Status: Active » Needs review
StatusFileSize
new1.02 KB

I thought it is worth debugging this issue and found that it should be:

'#ajax' => [
  'url' => views_ui_build_form_url($form_state),
]

Instead of:

'#ajax' => [
  'path' => views_ui_build_form_url($form_state),
]

So it is all about 'path' vs 'url'.

ab.shakir’s picture

Assigned: ab.shakir » Unassigned
mortona2k’s picture

Status: Needs review » Reviewed & tested by the community

This bug is impacting everyone who has had to set up a view with this module.

The code change is a simple fix, and solved the problem for me on D11.

Thank you!

vladimiraus made their first commit to this issue’s fork.

vladimiraus’s picture

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

Thank you everyone for your contributions.
Merged. 🍻

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

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