#108101Writing table delimiters in cell values creates unwanted columns in table content element
Description
Using the delimiter also in a cell value gets the cell value displayed in two cells instead of one after next save.
How to reproduce:
- Create a table content element
- Set
table_delimiterto Comma andtable_enclosureto “Double quotes” - Save the element without entering data into any cell!
- After save, enter
foo,barinto one cell and save
Result:
fooandbarare displayed in separate cellsbodytextfield in database is saved withfoo,bar
Expected behaviour:
- The Wizard shows only one cell with
foo,bar - In the database the value is stored with
"foo,bar"
Next step:
- Change the value of one cell and save
- Now
bodytextis correctly saved with"foo2","bar"
Further observations:
- The frontend rendering is correct for what is stored in the
bodytextdatabase field - If you only fill
bodytextaccordingly, e.g. by making direct changes in the database, the frontend output also functions correctly - The data in the database only breaks when you use the wizard and save the content element
I assume that can be fixed within writeTableSyntaxToTextarea() in Build/Sources/TypeScript/backend/form-engine/element/table-wizard-element.ts
For # 1 I have no idea so far.
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.
Fix this issue
Start the commit message of your patch with this. Add what the patch does, and the versions it goes to in "Releases:". How to create a patch
- Commit message
-
[BUGFIX] Writing table delimiters in cell values creates unwanted columns in table content element Resolves: #108101 Releases: main