From 225ce65de69a02b2b3c3147dea27d495970b3048 Mon Sep 17 00:00:00 2001 From: Thomas Leese Date: Fri, 6 Oct 2023 07:33:48 +0100 Subject: [PATCH] Fix reference to passed field The field no longer exists and has been replaced with `review_passed?`. --- .../qualification_requests_controller.rb | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/app/controllers/assessor_interface/qualification_requests_controller.rb b/app/controllers/assessor_interface/qualification_requests_controller.rb index 56c601b97a..3abb83c307 100644 --- a/app/controllers/assessor_interface/qualification_requests_controller.rb +++ b/app/controllers/assessor_interface/qualification_requests_controller.rb @@ -21,17 +21,8 @@ def edit false end - passed = (requestable.passed if requestable.received?) - - failed = - if requestable.expired? - case requestable.passed - when true - false - when false - true - end - end + passed = (requestable.review_passed? if requestable.received?) + failed = (requestable.review_failed? if requestable.expired?) @form = QualificationRequestForm.new(