Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backend indices configuration: JS Error due to missing global function ts() #2633

Closed
gadget60 opened this issue May 16, 2024 · 2 comments
Closed
Assignees
Labels
Milestone

Comments

@gadget60
Copy link
Contributor

In coreshop's "indices" configuration where available fields are listed, an exception is thrown if any field of type objectbrick, classification store or fieldcollection exists.

There is a global function "ts" expected - don't know if it used to exist in former Pimcore versions, but in current v11 it is undefined.
This makes all of these special fields unlisted and therefore unselectable.

The function gets called here:

text = ts(data[keys[i]].nodeLabel) + ' ' + t('columns');

... and two more times on following lines.

script-proxy?storage…ea4fe3eb8f505:32022 Uncaught ReferenceError: ts is not defined
    at klass.initLayoutFields (script-proxy?storage…fe3eb8f505:32022:25)
    at Object.callback (ext-all.js?_dc=8fbf4…fe3eb8f505:1827:134)
    at constructor.onComplete (ext-all.js?_dc=8fbf4…4fe3eb8f505:2655:25)
    at constructor.onStateChange (ext-all.js?_dc=8fbf4…fe3eb8f505:2652:746)
    at ext-all.js?_dc=8fbf4…fe3eb8f505:2652:601
    at Object.elevate (ext-all.js?_dc=8fbf4…fe3eb8f505:1547:178)
    at XMLHttpRequest.<anonymous> (ext-all.js?_dc=8fbf4…fe3eb8f505:2652:579)

@aarongerig
Copy link
Contributor

@dpfaffenbauer
Copy link
Member

@gadget60 Hey, how are you? Long time no see :)

Would you mind to create a PR? We will do a release tomorrow and I am kind of busy until then

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants