Browse Source

Make error_display_label function deal with the fact that blank will be empty rather than nil

pull/2672/head
Rachael Booth 2 years ago
parent
commit
9375c67cf5
  1. 10
      app/models/form/question.rb

10
app/models/form/question.rb

@ -222,7 +222,15 @@ class Form::Question
end end
def error_display_label def error_display_label
label = error_label || check_answer_label || header || id.humanize label = if error_label.present?
error_label
elsif check_answer_label.present?
check_answer_label
elsif header.present?
header
else
id.humanize
end
format_ending(label) format_ending(label)
end end

Loading…
Cancel
Save