This happens when cloning a facet with the dropdown button from the facet overview page.
At first you get a chance to change the name and machine name of your new facet, then when you submit that form you arrive at the edit form of the old facet you were cloning.

CommentFileSizeAuthor
#2 2934371_clone_form_redirect.patch516 bytesstanvoets
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

stanvoets created an issue. See original summary.

stanvoets’s picture

Here's a patch.

stanvoets’s picture

Title: Cloning a facet goes to the edit form of the original facet » Cloning a facet redirects to the edit form of the original facet
borisson_’s picture

Status: Active » Needs review

Awesome, thanks! I know that we've written a test for the cloning, so if there's no failure we need to improve the test. Otherwise we just have to get it green again.

stanvoets’s picture

The test seems a bit off.
It tries to check for the confirmation message:

$this->submitForm($clone_edit, 'Duplicate');
$this->assertSession()->pageTextContains('Facet cloned to Eastern screech owl');

But that will also succeed if it goes to the original facet.

borisson_’s picture

Status: Needs review » Fixed

Committed and pushed.

  • borisson_ committed 991d2eb on 8.x-1.x authored by stanvoets
    Issue #2934371 by stanvoets: Cloning a facet redirects to the edit form...

Status: Fixed » Closed (fixed)

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