8000 [5.x]: Table Fields with Static Row option don't update their content when rows are changed · Issue #17090 · craftcms/cms · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[5.x]: Table Fields with Static Row option don't update their content when rows are changed #17090

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

Open
MoritzLost opened this issue Apr 15, 2025 · 0 comments
Assignees
Labels

Comments

@MoritzLost
8000 Copy link
Contributor

What happened?

Description

We use a Table Field with the Static Rows option and a Row heading column to allow users to enter social media links in a simple and concise interface, without having to create too many fields manually:

Image

However, we have noticed that it's nearly impossible to change the definition of the table fields once some content has been entered, because existing contents are not updated when the table field changes.

Steps to reproduce

  1. Create a table field and configure it as seen in the screenshot above.
  2. Add it to an entry type and create some entries. Fill all rows with content.
  3. Change the order of two rows. The values in all existing entries won't match their heading any more.
  4. Delete a row, or add a row and move it between the existing rows. In either case, existing entries will again not match their heading any more.

Expected behavior

When the Static Rows option is used, changes to the structure of the table field should be reflected in existing contents. In particular if it's used in combination with a Row heading column.

Actual behavior

Basically, the only modification to a table field using those options is to add rows at the bottom. You can't re-arrange, delete or add rows (above existing rows) without screwing up existing contents.

Craft CMS version

5.6.11

PHP version

8.3

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

No response

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
0