Fixes and add label to tables

This commit is contained in:
2022-04-16 15:21:07 -05:00
parent 073cc9452e
commit 8b0ddff515
13 changed files with 76 additions and 38 deletions
@@ -75,7 +75,7 @@ module Suppliers
private
def table_params
permitted_attributes = [:number, :section_id, :position_x, :position_y, :width, :height]
permitted_attributes = [:number, :label, :section_id, :position_x, :position_y, :width, :height]
# do not raise in development and test for json communication
if request.format.json?
params.require(:table).slice(*permitted_attributes).permit!