[5.x]: Table Fields with Static Row option don't update their content when rows are changed · Issue #17090 · craftcms/cms · GitHub
More Web Proxy on the site http://driver.im/
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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
Create a table field and configure it as seen in the screenshot above.
Add it to an entry type and create some entries. Fill all rows with content.
Change the order of two rows. The values in all existing entries won't match their heading any more.
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
The text was updated successfully, but these errors were encountered:
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:
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
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
The text was updated successfully, but these errors were encountered: