verbb / tablemaker

A user-definable table field type for Craft CMS
MIT License
40 stars 32 forks source link

Deleting columns doesnt delete the rows, throws error on save #41

Closed benfeather closed 10 months ago

benfeather commented 10 months ago

Describe the bug

Suppose you create a table with columns and rows. If you delete a column(s), it is not deleted from the table rows, and when you save the entry, an error occurs.

Example (all columns have been deleted): CleanShot 2024-01-25 at 11 36 24@2x

Error on save: CleanShot 2024-01-25 at 11 37 47@2x

Steps to reproduce

  1. Create a table column
  2. Create a row using that column
  3. Delete the column
  4. Save the entry

Craft CMS version

4.7.0

Plugin version

4.0.7

Multi-site?

No response

Additional context

No response

engram-design commented 10 months ago

Fixed for the next release. To get this early, run composer require verbb/tablemaker:"dev-craft-4 as 4.0.7".

benfeather commented 10 months ago

Looks good, thanks!