Add functional coverage (without needing JS), support using the module without JS

Created on 11 June 2024, 17 days ago
Updated 14 June 2024, 14 days ago

Problem/Motivation

It is not possible to use the Views Reference Field (both autocomplete/select) without JavaScript enabled as the widgets both require ajax and validate as such. This also prevents much faster Functional Tests.

Steps to reproduce

Try to create a node with a Views Reference Field with either widget with JS disabled

Proposed resolution

Instead of relying on isEmpty() validate that a display ID is selected for a View.
This also means that the field formatters must prevent display if no display ID is selected as isEmpty() is no longer relied on for that.

Remaining tasks

Update the code to work without JS
Add functional tests to cover that

User interface changes

Users without JS can now use the field

API changes

None

Data model changes

None

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇬🇧United Kingdom scott_euser

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.69.0 2024