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
Using included columns will result in an \OutOfBoundsException being thrown, if the grid source does not return rows/data.
I looked into this issue in the scope of this issue: element119/module-admin-opcache-report#1 (comment)
Using included columns will result in an
\OutOfBoundsException
being thrown, if the grid source does not return rows/data.I looked into this issue in the scope of this issue: element119/module-admin-opcache-report#1 (comment)
The cause of this is, that when
Hyva\Admin\Model\GridSource::extractColumnDefinitions()
calls the methodvalidateConfiguredKeys
, it checks the included columns against all existing ones from the provider.(See: https://github.com/hyva-themes/magento2-hyva-admin/blob/main/Model/GridSource.php#L77)
A simple workaround/hack I've been using (via a composer patch), is to ignore the validation if no data is present:
The text was updated successfully, but these errors were encountered: