- Issue created by @Odai Atieh
- 🇯🇴Jordan Odai Atieh Amman
This is a patch to exclude the file and user entities from the query alter hook, but I'm still testing it.
I can't upload an image when adding new content to the group.
I used the below:
group: 8.x-1.5
drupal core: 9.5.3
1- Create a group type.
2- Create a new content type and add an image field to it.
3- Create a new group.
4- Try to add content and fill the image field.
5- You will see the below error:
The specified file 1900x400.jpg could not be uploaded.
This entity (user: 996) cannot be referenced.
I think we can make some changes to EntityQueryAlter to fix the user query. Or but I'm not sure, we can exclude the query alter for the file and user entities.
Active
1.5
Code
This is a patch to exclude the file and user entities from the query alter hook, but I'm still testing it.