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.x]: Table with static/default rows doesnt initialize in already existing entries #13245

Closed
foxtrotcz opened this issue May 24, 2023 · 1 comment

Comments

@foxtrotcz
Copy link

What happened?

Description

I am trying to create new table with static rows and row headings defined in default values as shown in this PR #13231
But table doesnt create it's rows and row headings when added to already existing entry/entry type.

Steps to reproduce

  1. Create or have some already existing entry type and entry.
  2. Create new table field with static rows and some default values. For example row headings.
  3. Add this new table field to the entry type.
  4. Open your entry.

Expected behavior

New table should appear in my entry with predefined default values. In this case predefined row headings.
image

Actual behavior

Empty table created.
image

Workaround

When empty table is created you can go back to table field and disable static rows.
In entry add some rows, one is enough and no need to fill them. You just need to initialize the table.
Again go to table field and reenable static rows.
Now your entry should populate with correct number of default rows and row headings if defined.

Craft CMS version

4.5.x-dev

PHP version

8.1.16

Operating system and version

Linux 5.15.0-72-generic

Database type and version

MariaDB 10.6.12

Image driver and version

Imagick 3.7.0 (ImageMagick 6.9.11-60)

Installed plugins and versions

@brandonkelly
Copy link
Member

Thanks for testing and reporting that! This is now fixed on the 4.5 branch.

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