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

onCreateEditFields values not submitted because of JavaScript errors #2

Open
2 tasks done
lorenzulrich opened this issue Feb 9, 2021 · 0 comments
Open
2 tasks done

Comments

@lorenzulrich
Copy link

Bug Report

Prerequisites

  • Can you reproduce the problem on TYPO3 v10.4 LTS
  • Did you perform a cursory search to see if your bug or feature is already reported?

Description

I am using YAML mode.

If onCreateEditFields are defined, e.g. the page title, the fields are rendered properly.

However, on displaying the form with the fields to edit, a JS error appears in the console:

Uncaught TypeError: Cannot read property 'addEventListener' of undefined
    at Object.FormEngine.initializeEvents (VM7620 FormEngine.js:603)
    at HTMLDocument.<anonymous> (VM7620 FormEngine.js:1361)
    at mightThrow (VM7626 jquery.js:3557)
    at process (VM7626 jquery.js:3625)

This has the effect that the field value is not copied to the according hidden field and therefore the value is not submitted.

Steps to Reproduce

  1. Create a site configuration with an onCreateEditFields for the page, e.g. title.
  2. Use this page template to create a new page.
  3. Fill in the title field and click "Save New Page"

Expected behavior: The page is saved and the title value entered is used.

Actual behavior: The page is saved, but the title value remains empty.

Versions

1.2.0

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

No branches or pull requests

1 participant