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

[4.5]: Changing table field column type settings stringifies Date object #13303

Closed
AugustMiller opened this issue Jun 9, 2023 · 1 comment
Closed
Assignees

Comments

@AugustMiller
Copy link
Contributor

What happened?

Description

[object Object] is sometimes output when switching between column types in Table field settings.

Steps to reproduce

See video!

Screen.Recording.2023-06-09.at.12.20.08.PM.mov
  1. Create a new column in a Table field's settings;
  2. Set it to Date;
  3. Add one or more rows to the Default values table;
  4. Change the column type to Single-line text or any other plain textual type
  5. Observe [object Object] output in default field;

Additionally, switching from a Date column type to Checkbox causes the default to be checked. Similarly, switching from Date to Color causes a JS error. 🚨

Expected behavior

Incompatible column type data is discarded when switching

Actual behavior

Undesirable default value is inserted into the default rows, or a JS error occurs.

Craft CMS version

4.5

PHP version

8.0.28

Operating system and version

macOS 13.1

Database type and version

MariaDB 10.4.28

Image driver and version

Imagick 3.7.0 (ImageMagick 6.9.11-60)

Installed plugins and versions

None!

@brandonkelly
Copy link
Member

Craft 4.4.14 is out with a fix for this.

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

3 participants