open-admin icon indicating copy to clipboard operation
open-admin copied to clipboard

Mutible belongsTo relation with sorting fail

Open open-admin-org opened this issue 2 years ago • 1 comments

Describe the bug Two relations with sorting on will fail image

The sorting is set to all the fields (not the field) image

To Reproduce Steps to reproduce the behavior, for example: $form->belongsTo('user_id', UserSelect::class, 'user'); $form->belongsToMany('tags', TagSelect::class);

Expected behavior

  • either disable sorting or...
  • Sorting should only be done for the specific field
  • If the field is dirty, ask before navigating away (or disable sort)

System

  • Open-admin version 1.0.27

open-admin-org avatar Nov 02 '23 16:11 open-admin-org

Disabled sorting in forms, now fixed sorting for popup.

open-admin-org avatar Nov 08 '23 22:11 open-admin-org