diff --git a/app/models/case_log.rb b/app/models/case_log.rb index 5e4f99c48..f6bf7639e 100644 --- a/app/models/case_log.rb +++ b/app/models/case_log.rb @@ -20,7 +20,9 @@ class CaseLogValidator < ActiveModel::Validator def validate(record) question_to_validate = options[:previous_page] - public_send("validate_#{question_to_validate}", record) + if question_to_validate.present? + public_send("validate_#{question_to_validate}", record) + end end end