Quick Search on person crud returns error: "reference-list `Shesha\\Shesha.Core.PersonType` not found"
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:
- Go the Person Crud Swagger on the API: https://pd-enterpriseproject-api-test.shesha.dev/swagger/index.html?urls.primaryName=PersonCrud
- Authorize
- 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
- You will receive the above error
Expected behavior The matching people should be returned
Screenshots
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?
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?