Error Invalid Pattern Definition: Missing Table References

Hi,

I have created a basic addon with a new field in products table. In my exim folder I have created products.post.php file with:

$schema['export_fields']['NG vendor ref'] = [
'table' => 'products',
'db_field' => 'ng_vendor_ref',
'multilang' => false,
];
return $schema;

On the Export data products have this error:

Error Invalid pattern definition: missing table references

[attachment=14313:2020-04-07 21_17_03-Administration __ Export data - Administration panel.png]

How can I reference the products table?

Thanks for any help.

Nicolas

2020-04-07 21_17_03-Administration __ Export data - Administration panel.png

Should be something like:


if(!defined(‘BOOTSTRAP’)) {die(‘Access denied’);}

$schema[‘export_fields’][‘NG vendor ref’] = array(
‘db_field’ => ‘ng_vendor_ref’,
‘multilang’ => false
);

return $schema;

Thanks a lot :grin: