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

JS-Error blocks Fluent actions for unlocalised objects #1290

Closed
2 tasks done
MLindenhofer opened this issue Dec 6, 2024 · 2 comments
Closed
2 tasks done

JS-Error blocks Fluent actions for unlocalised objects #1290

MLindenhofer opened this issue Dec 6, 2024 · 2 comments

Comments

@MLindenhofer
Copy link

MLindenhofer commented Dec 6, 2024

Module version(s) affected

5.3.2

Description

Since upgrading to 5.3.x any page or object which is not localized can not be published, drafted. When checking the console there was this error message:

Uncaught TypeError: Cannot read properties of undefined (reading 'elemental-area-id')
at e.fn.init.onbeforesubmitform (bundle.js?m=1725229120:1:52032)
at e.fn.init. (vendor.js?m=1731968536:1:111017)
at o (vendor.js?m=1731968536:1:102610)
at e.fn.init.from .cms-edit-form_beforesubmitform (vendor.js?m=1731968536:1:102806)
at HTMLDocument. (vendor.js?m=1731968536:1:110895)
at HTMLDocument.dispatch (vendor.js?m=1731968536:1:741792)
at m.handle (vendor.js?m=1731968536:1:739783)
at Object.trigger (vendor.js?m=1731968536:1:771793)
at HTMLFormElement. (vendor.js?m=1731968536:1:772391)
at Function.each (vendor.js?m=1731968536:1:705023)

How to reproduce

  • Install Fluent module
  • Apply ElementalPageExtension to Page.
  • Create a new locale
  • Try to hit "Copy & publish" - cms action button

Behaviour:
Nothing happens, only that error-msg in console shows up

Possible Solution

No response

Additional Context

No response

Validations

  • Check that there isn't already an issue that reports the same bug
  • Double check that your reproduction steps work in a fresh installation of silverstripe/installer (with any code examples you've provided)

PRs

@emteknetnz
Copy link
Member

Linked PR has been merged, a patch released will automatically tagged shortly

@lerni
Copy link

lerni commented Dec 11, 2024

Pretty cool, it got fixes so quickly. Thank you!

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

4 participants