diff --git a/app/models/answer.rb b/app/models/answer.rb index ddce6f7..f44987b 100644 --- a/app/models/answer.rb +++ b/app/models/answer.rb @@ -44,6 +44,9 @@ # @return [Answer] the saved, copied answer def self.deep_copy(answer) answer_copy = answer.dup + answer.question_options.each do |opt| + answer_copy.question_options << opt + end answer_copy.save! return answer_copy end diff --git a/app/views/devise/registrations/edit.html.erb b/app/views/devise/registrations/edit.html.erb index 3c922a6..9b1139d 100644 --- a/app/views/devise/registrations/edit.html.erb +++ b/app/views/devise/registrations/edit.html.erb @@ -6,13 +6,13 @@
diff --git a/app/views/guidances/admin_index.html.erb b/app/views/guidances/admin_index.html.erb index b610abf..1d4dc80 100644 --- a/app/views/guidances/admin_index.html.erb +++ b/app/views/guidances/admin_index.html.erb @@ -75,7 +75,7 @@ <% if @guidances.length > 0 then%> - <% if @guidances.count > 10 %> + <% if @guidances.length > 10 %>
<%= render(partial: "shared/table_filter", diff --git a/app/views/orgs/shibboleth_ds.html.erb b/app/views/orgs/shibboleth_ds.html.erb index c3e2f6a..7484fdd 100644 --- a/app/views/orgs/shibboleth_ds.html.erb +++ b/app/views/orgs/shibboleth_ds.html.erb @@ -10,7 +10,7 @@ <%= _('Look up your institution here') %> - <% if @orgs.count <= 10 %> + <% if @orgs.length <= 10 %>