From 1b683bc70ef2dbe22a66e2f172f694ad1ff08aa9 Mon Sep 17 00:00:00 2001 From: Mojca Lorber Date: Fri, 16 Jun 2017 15:09:04 +0200 Subject: [PATCH] fix error msg when editing empty cell in repositories --- 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 973373022..028029975 100644 --- a/app/controllers/repository_rows_controller.rb +++ b/app/controllers/repository_rows_controller.rb @@ -131,7 +131,7 @@ class RepositoryRowsController < ApplicationController record_annotation_notification(@record, value.repository_cell) else errors[:repository_cells] << { - "#{cell.repository_column_id}": value.errors.messages + "#{column.id}": value.errors.messages } end end