BlackbitDigitalCommerce / pimcore-data-director

Import Bundle for Pimcore
16 stars 3 forks source link

Export error if field name has apostrophe #107

Closed ascheider closed 1 year ago

ascheider commented 1 year ago

The customer has object brick with some usp's After click on auto create, the config for the export is created: image Ich you select excel in result callback function, data director does not escape the apostrophe with backslash for example. image If you run the export, you get the exception in eval: image

In my opinion: 1.) you can strip the apostrophe from field name 2.) strip apostrophe in template creation

BlackbitDevs commented 1 year ago

Beside that "USP's" is not the correct plural of "USP", you are right ;-)

Now in both places (auto-create fields and result callback function template generation) all non-alphanumeric characters (except whitespace) get replaced.

Released as 3.4.10.

ascheider commented 1 year ago

@BlackbitDevs Thanks for the quick fix ;)