EasyCorp / EasyCorp/EasyAdminBundle

Multiple Crud for EntityFqcn and automplete wrong url (pretty)

Open
#7,232 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

stale
Dominant language
PHP
Stars
4.3k
Forks
1.1k
Avg merge
8d 2h
Merged PRs (30d)
11

Description

Hello,
I've 2 differente CrudController with different queryBuilder and field. (A1CrudControler, A2CrudControler)

In one other Crudcontroler (BCrudControler) I use AssociationField for a many2many relation on A, I ->setController(A1CrudControler::class), to get the good filter(queryBuilder), but th automplete url is wrong :

https://url.test/admin/a2/autocomplete?...

What's wrong ???

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the setup with A1CrudController and A2CrudController using different query builders, then open the AssociationField in BCrudController where setController(A1CrudController::class) is configured. Trace the autocomplete URL generation and verify that it targets A1 rather than the reported /admin/a2/autocomplete path.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, symfony
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.