Problem/Motivation

I don't see the tabledraggers (tabledrag-cell's are set to display: none) and I need to use the "Show row weights" option, and enter for example "-1" to re-order the fields (see image below).

It's the same for items under "Sorts" (/admin/config/search/search-api/index/INDEX_ID/sorts) where they are also missing.

They are however present under for example "Processors" (see image below) at /admin/config/search/search-api/index/INDEX_ID/processors or a Content type's "Manage display" page, so seems isolated to "Sorts" and "Sorts Widget". I checked and <script src="/core/misc/tabledrag.js?v=10.6.14"></script> is present in the source.

Missing tabledraggers for "Sorts Widget"
Missing

Tabledraggers present for "Processors"
Present

Steps to reproduce

I am not sure ... I am ready to test, and try any suggestions on how to get to the bottom of this :)

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Command icon 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

ressa created an issue. See original summary.

peri22 made their first commit to this issue’s fork.

peri22’s picture

Status: Active » Needs review

Thanks for the report, I confirmed this is a bug in our module.
MR !11 moves the weight column to the right end of the table. Form saving still works perfectly, because `submitForm()` reads the values by their keys, not by their visual order.

ressa’s picture

Status: Needs review » Reviewed & tested by the community

Thanks for checking so fast, and creating an MR. I can confirm that it works well, and I can drag, and re-order the fields now. (With the patch from #3488348: Sort weight is not respected it works totally perfectly).

Maybe the code was copied from the https://www.drupal.org/project/search_api_sorts module, possibly explaining why that module has the same problem? I'll create another issue for that :)
EDIT: See #3617951: Tabledraggers are missing for Search API Sorts module.

  • peri22 committed 5fe4fe6b on 1.x
    Issue #3617689: Move the weight column to the end of the...
    
peri22’s picture

Status: Reviewed & tested by the community » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

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