Problem/Motivation
When migrating from Solr to SearchStax, after migrating the server, and having two search indexes, pressing "Create copy" for the second index always results in the first index being copied.

Steps to reproduce
Start with a site configured to use Solr and two search indexes.
1. Migrate the Solr server to SearchStax
2. Press the "Create copy" button next to the second index.
3. Notice that when the page reloads, a copy of the first index has actually been created.
Alternatively, inspect the "Create copy" submit buttons in the browser, and note they are not on the correct row.
Proposed resolution
The "Create copy" buttons are reversed on the migration page. Check the logic for building the form to make sure they are placed correctly.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | searchstax-migrate-issue.png | 328.81 KB | franckylfs |
| #2 | Screenshot 2025-06-13 at 2.45.50 PM.png | 364.15 KB | byrond |
Issue fork searchstax-3530133
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
Comment #2
byrond commentedComment #3
byrond commentedComment #4
franckylfs commentedIt's exactly the same problem for the views index too.

Comment #7
drunken monkeyThanks for reporting, and sorry it took me so long to get back to you!
I could reproduce the problem (after a few tries) and can now see where this is coming from. Should be fixed in this merge request, along with another problem with this form (which can appear when deleting migrated servers/indexes).
Please give it a try!
Comment #8
drunken monkeyMerged.
Should now be fixed in the dev snapshot of the module and the fix will also be included in the upcoming 1.7.2 (or 1.8.0) release.