Make this module work with integer base fields too

Created on 24 July 2023, almost 2 years ago
Updated 3 August 2023, over 1 year ago

Problem/Motivation

It would be nice if one can use this module with base fields too (integer only of course). At this moment only config fields are supported.

There maybe also an issue with the table drag sorting if the integer field is unsigned (allows no negative number). Table drag may provide negative numbers for sorting and negative value would produce sql error in this case.

Steps to reproduce

Try to use a base field of an entity for sorting with this module.

Proposed resolution

- Allow base fields for sorting too
- Do not allow read only base fields (this removes entity id fields for example)
- check whether the field is unsigned and provide a workaround to only use positive numbers for the sorting value while keeping the sort order arranged by table drag

Remaining tasks

provide patch

User interface changes

allows configuring integer base fields as weight keys as well

API changes

na

Data model changes

na

Feature request
Status

Needs review

Version

1.0

Component

Code

Created by

🇩🇪Germany stefan.korn Jossgrund

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024