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

Quick Search on person crud returns error: "reference-list Shesha\\Shesha.Core.PersonType not found" #2144

Open
MarshallRJ opened this issue Sep 11, 2024 · 1 comment

Comments

@MarshallRJ
Copy link

Describe the bug
When using the QuickSearch on the Person Crud the following error is thrown:

"error": {
    "code": 404,
    "message": "reference-list `Shesha\\Shesha.Core.PersonType` not found",
    "details": "reference-list `Shesha\\Shesha.Core.PersonType` not found",
    "validationErrors": null
  }

To Reproduce
Steps to reproduce the behavior:

  1. Go the Person Crud Swagger on the API: https://pd-enterpriseproject-api-test.shesha.dev/swagger/index.html?urls.primaryName=PersonCrud
  2. Authorize
  3. Execute the get all with something in the QuickSearch Eg:https://pd-enterpriseproject-api-test.shesha.dev/api/dynamic/Shesha/Person/Crud/GetAll?quickSearch=test
  4. You will receive the above error

Expected behavior
The matching people should be returned

Screenshots
image

Additional context
This seems to only be on projects consuming a recent version of Shesha. The PersonType reference list seems empty on these projects and perhaps that is what is causing the issue?

@MarshallRJ MarshallRJ changed the title Quick Search on person crud eeturns error: "reference-list Shesha\\Shesha.Core.PersonType not found" Quick Search on person crud returns error: "reference-list Shesha\\Shesha.Core.PersonType not found" Sep 12, 2024
@hlayisanimazuze
Copy link
Collaborator

Hi @MarshallRJ, the reason is returning that error is because the personType is a data driven reference list and is not assigned to the Shesha module. If you manually assign the referenceList to the correct module, it will succeed.

@IvanIlyichev @AlexStepantsov is there a way we can auto-assign the referenceList module on data driven referenceList?

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

No branches or pull requests

2 participants