Skip to content

Issue #3385030

Issue #3385030

In my opinion, the original question of this issue arises due to the fact that before saving the TablefieldItem, nowhere in the code is it checked whether the table elements are empty. Therefore, a situation arises that it is possible to save a table that consists entirely of empty rows and columns.

Such a check could be added to the widget by overriding the extractFormValues ​​method of the 'WidgetBase' class.

The most appropriate in my opinion would be to do this in the setValue method in the 'TablefieldItem' itself.

However, at this stage, decide to simply add additional settings to the field`s formatter that will allow to hide empty rows and columns of the table at will, because this option for solving this issue is the safest and will not require changing the data that is stored in the database.

Edited by Lysenko

Merge request reports