From e7328c2e20d3a91fe8c6811bf064d47ae5d56b88 Mon Sep 17 00:00:00 2001 From: zmagod Date: Thu, 22 Jun 2017 16:01:37 +0200 Subject: [PATCH] fixes row dupplication [fixes SCI-1385] --- app/controllers/repository_rows_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/repository_rows_controller.rb b/app/controllers/repository_rows_controller.rb index f5947725a..88b0b64b0 100644 --- a/app/controllers/repository_rows_controller.rb +++ b/app/controllers/repository_rows_controller.rb @@ -46,7 +46,7 @@ class RepositoryRowsController < ApplicationController end end end - + record.destroy if errors[:repository_cells].any? respond_to do |format| format.json do if errors[:default_fields].empty? && errors[:repository_cells].empty?