From 4877a51cbab7b90b5c415c298e90485739a52c16 Mon Sep 17 00:00:00 2001 From: Scott Rohde Date: Tue, 16 Jun 2015 15:19:06 -0500 Subject: [PATCH] Fixed bug in display of QA/QC column values in the case where the value is not editable (the "else" branch). C.f. Github issue #303. --- app/views/yields/_index_table.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/yields/_index_table.html.erb b/app/views/yields/_index_table.html.erb index bac031014..57bd18a9b 100644 --- a/app/views/yields/_index_table.html.erb +++ b/app/views/yields/_index_table.html.erb @@ -36,7 +36,7 @@ <% else %> - <%= ["failed","unchecked","passed"][y.checked-1] %> + <%= ["failed","unchecked","passed"][y.checked + 1] %> <% end %> <% if ( current_user.access_level < y.access_level ) or ( current_user.access_level = y.access_level and y.checked ) or ( y.user_id == current_user.id ) or ( current_user.page_access_level <= 2 )%>