Merge pull request #6748 from lasniscinote/gl_SCI_9789

(fix) Update of item table not done, stock modal entry [SCI-9789]
This commit is contained in:
Martin Artnik 2023-12-04 09:50:39 +01:00 committed by GitHub
commit 285d32afcd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -210,7 +210,7 @@ class RepositoryRowsController < ApplicationController
return render json: { name: @repository_row.name } if update_params['repository_row'].present?
column = row_cell_update.column
cell = row_cell_update.cell.reload
cell = row_cell_update.cell&.reload || row_cell_update.cell
data = { value_type: column.data_type, id: column.id, value: nil }
return render json: data if cell.blank?