when trying to export to CSV, i get TypeError: Illegal offset type in isset or empty in vendor/magento/module-ui/Model/Export/MetadataProvider.php:174
line 174 is if (isset($options[$column][$key])) {
public function getRowData(DocumentInterface $document, $fields, $options): array { $row = []; foreach ($fields as $column) { if (isset($options[$column])) { $key = $document->getCustomAttribute($column)->getValue(); if (isset($options[$column][$key])) { $row[] = $options[$column][$key]; } else { $row[] = ''; } } else { $row[] = $document->getCustomAttribute($column)->getValue(); } } return $row; }
any help with this?
submitted by /u/atherakber
[link] [comments]