Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
STEPS:
- create View
- add View field
- select sub-view from "View" dropdown
PROBLEM:
This causes the loading wheel to spin, then the View field modal is replaced with the standard "Add Field" modal, which, as far as I can tell, has nothing to do with our "Add View Field" workflow. This prevents you from continuing with the View field configuration that you were just working on.
WORKAROUND:
After adding new View field, don't select the sub-view, select Apply, then click the newly added View field and configure it from there.
Comment | File | Size | Author |
---|---|---|---|
#3 | broken-workflow-2794483.patch | 977 bytes | purushotam.rai |
Comments
Comment #2
xeM8VfDh CreditAttribution: xeM8VfDh commentedFor what it is worth, I tested this again on https://simplytest.me/ using Drupal core 8.4.1. The only module I installed in that environment was views_field_view 8.x-1.0-beta2. Same exact same results.
Comment #3
purushotam.rai CreditAttribution: purushotam.rai at QED42 commentedI had a look at the code, in file View.php $form['view'] '#ajax' was using path index, which IMO should be 'url' instead
Reference: https://api.drupal.org/api/drupal/core!core.api.php/group/ajax/8.2.x
Comment #4
nicrodgersComment #5
nicrodgersReplicated in 1.x-dev, although the behaviour is slightly different. After selecting a view, instead of seeing a spinner, the window disappears and is replaced by the 'add field' popup.
After applying the patch, the problem is fixed, and you can add the field correctly. Thanks @purushotam.rai