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

[5.x]: ReferenceError when creating new field via FLD #14933

Closed
mmikkel opened this issue May 2, 2024 · 1 comment
Closed

[5.x]: ReferenceError when creating new field via FLD #14933

mmikkel opened this issue May 2, 2024 · 1 comment
Labels

Comments

@mmikkel
Copy link
Contributor

mmikkel commented May 2, 2024

What happened?

Description

When creating a new field via a field layout designer, a JS ReferenceError is thrown. Not sure if it actually affects anything.

FieldLayoutDesigner.js:287  Uncaught (in promise) ReferenceError: designer is not defined
    at FieldLayoutDesigner.js:287:15
    at u (FieldLayoutDesigner.js:2:1)
    at Generator.<anonymous> (FieldLayoutDesigner.js:2:1)
    at Generator.next (FieldLayoutDesigner.js:2:1)
    at asyncGeneratorStep (FieldLayoutDesigner.js:2:1)
    at s (FieldLayoutDesigner.js:2:1)
    at FieldLayoutDesigner.js:2:1
    at new Promise (<anonymous>)
    at Object.<anonymous> (FieldLayoutDesigner.js:2:1)
    at Object.handler (FieldLayoutDesigner.js:293:8)
(anonymous) @ FieldLayoutDesigner.js:287
u @ FieldLayoutDesigner.js:2
(anonymous) @ FieldLayoutDesigner.js:2
(anonymous) @ FieldLayoutDesigner.js:2
asyncGeneratorStep @ FieldLayoutDesigner.js:2
s @ FieldLayoutDesigner.js:2
(anonymous) @ FieldLayoutDesigner.js:2
(anonymous) @ FieldLayoutDesigner.js:2
(anonymous) @ FieldLayoutDesigner.js:293
trigger @ Base.js:83
handleSubmitResponse @ CpScreenSlideout.js:556
(anonymous) @ CpScreenSlideout.js:537
Promise.then (async)
submit @ CpScreenSlideout.js:536
(anonymous) @ CpScreenSlideout.js:515
setTimeout (async)
handleSubmit @ CpScreenSlideout.js:514
(anonymous) @ Base.js:153
o @ jquery.js?v=1714682107:2
dispatch @ jquery.js?v=1714682107:2
v.handle @ jquery.js?v=1714682107:2

Steps to reproduce

  1. Edit an entry type
  2. In the entry type FLD, click "New field"
  3. Create a simple Plain Text field and click "Save" in the slideout
  4. See error in dev tools console

Expected behavior

Actual behavior

Craft CMS version

5.1.0

PHP version

No response

Operating system and version

macOS 14.3.1, MS Edge 124.0.2478.67

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

None

@brandonkelly
Copy link
Member

Fixed in 5.1.1!

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

2 participants