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

[Bug]: Locale collector results in #905

Open
br33f opened this issue Oct 25, 2024 · 2 comments
Open

[Bug]: Locale collector results in #905

br33f opened this issue Oct 25, 2024 · 2 comments

Comments

@br33f
Copy link

br33f commented Oct 25, 2024

Expected behavior

Mutation configuration modal (Mutation Schema Fields) is closed after clicking "Apply" button.

Actual behavior

Nothing happens from the users perspective. In developer console an error is thrown:

Uncaught TypeError: Cannot set properties of undefined (setting 'children')

From my analysis it looks like this error is thrown at:

pimcore.plugin.datahub.fieldConfigDialog.doGetRecursiveData

Steps to reproduce

Pimcore 11.4.1
DataHub: 1.8.2
PHP: 8.2.19

  1. Create a class of object which contains at least one "Localized Fields", in my example "Name".
  2. Create DataHub GraphQL Configuration and fill in all the mandatory fields.
  3. In the created GraphQL configuration go to "Schema definition" and add a new Mutation Schema for the class of object you created before.
  4. Go to settings of this mutation schema. The configuration modal (Mutation Schema Fields) will appear.
  5. Add Locale Collector operator from "Others" section.
  6. Add localized field as a child of Locale Collector
  7. Click "Apply" button in modal.
@br33f br33f added the Bug label Oct 25, 2024
@breakone
Copy link

We have the same problem. How to deal with translated fields in mutations?!

Copy link

Thanks a lot for reporting the issue. We did not consider the issue as "Pimcore:Priority", "Pimcore:ToDo" or "Pimcore:Backlog", so we're not going to work on that anytime soon. Please create a pull request to fix the issue if this is a bug report. We'll then review it as quickly as possible. If you're interested in contributing a feature, please contact us first here before creating a pull request. We'll then decide whether we'd accept it or not. Thanks for your understanding.

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

No branches or pull requests

2 participants