You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Nova Resource I was trying to import has a MapField, which in $this->attributes evaluates as an array. When checking for using offset array thats when it throws exception.
A quick solution i see is to check if key is string before using it.
Thanks for investigating and reporting @tumainimosha. I'm not familiar with this sort of MapField... are you using a specific Nova package to add this or did you roll your own? Could you share the implementation of that Field so that I can investigate further?
Getting below error when Importing
I traced the issue down to this function in Importer.php
The Nova Resource I was trying to import has a MapField, which in $this->attributes evaluates as an array. When checking for using offset array thats when it throws exception.
A quick solution i see is to check if key is string before using it.
I could do a PR for this if this is ok
The text was updated successfully, but these errors were encountered: