From 2dd9b6ff19654b973b59705d3896242ec3c7c12f Mon Sep 17 00:00:00 2001 From: zmagod Date: Thu, 22 Jun 2017 17:29:17 +0200 Subject: [PATCH] fix update repository_row --- app/controllers/repository_rows_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/repository_rows_controller.rb b/app/controllers/repository_rows_controller.rb index b6ccbd3ce..03d3637fd 100644 --- a/app/controllers/repository_rows_controller.rb +++ b/app/controllers/repository_rows_controller.rb @@ -145,6 +145,7 @@ class RepositoryRowsController < ApplicationController else @record.repository_cells.each { |c| c.value.destroy } end + raise ActiveRecord::Rollback if errors[:repository_cells].any? end respond_to do |format|