STEPS:

  1. create View
  2. add View field
  3. 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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

xeM8VfDh created an issue. See original summary.

xeM8VfDh’s picture

For 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.

purushotam.rai’s picture

Status: Active » Needs review
FileSize
977 bytes

I 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

nicrodgers’s picture

Assigned: Unassigned » nicrodgers
nicrodgers’s picture

Version: 8.x-1.0-beta2 » 8.x-1.x-dev
Assigned: nicrodgers » Unassigned
Status: Needs review » Reviewed & tested by the community

Replicated 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