Fixes and add label to tables
This commit is contained in:
@@ -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!
|
||||
|
||||
Reference in New Issue
Block a user