uasoft-indonesia / badaso

Laravel Vue headless CMS / admin panel / dashboard / builder / API CRUD generator, anything !
https://badaso.uatech.co.id
MIT License
1.21k stars 223 forks source link

GetData.php - ERROR: in_array(): Argument #2 ($haystack) must be of type array, null given #1019

Closed Dri372 closed 1 year ago

Dri372 commented 1 year ago

Describe the bug After an upgrade, you cannot browse an existing crud, you get an error "ERROR: in_array(): Argument #2 ($haystack) must be of type array, null given {"userId":1,"exception":"[object] (TypeError(code: 0): in_array(): Argument #2 ($haystack) must be of type array, null given at /var/www/html/Badaso/t1p/vendor/badaso/core/src/Helpers/GetData.php:344"

Root cause in the table badaso_permissions, the fields "roles_can_see_all_data" and "field_identify_related_user" are Null.

To Reproduce

Badaso (please complete the following information):

rizkiheryandi commented 1 year ago

it fixed on newest version