Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple relation filter with same column name #2791

Open
iFrez opened this issue Jan 13, 2024 · 0 comments
Open

Multiple relation filter with same column name #2791

iFrez opened this issue Jan 13, 2024 · 0 comments
Assignees
Labels

Comments

@iFrez
Copy link

iFrez commented Jan 13, 2024

Describe the bug
After filter apply url have a look like https://domain/admin/method?filter[some_id]=1&filter[some_id]= (Null value in query string leads empty response) instead of https://domain/admin/method?filter[some_id]=1

To Reproduce
Steps to reproduce the behavior:

  1. Create columns
  public function columns(): array
    {
 return [
...
  TD::make(some_id', 'name')->filter(Relation::make()->fromModel(Method::class, 'column1'),
  TD::make('some_id', 'address')->filter(Relation::make()->fromModel(Method::class, 'column2'),
...
       ];
    }
  1. Apply filters

Expected behavior
Get clean url like https://domain/admin/method?filter[some_id]=1

Server (please complete the following information):

  • Platfrom Version: ^14.0
  • Laravel Version: 10.39.0
  • PHP Version: 8.2.4

Additional context
Need modify this function to also filter an array and get first not null value.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants