Skip to content

Commit

Permalink
Fix probation template bug (#2525)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucas-shaw authored Dec 13, 2024
1 parent 60a5f0e commit 43e80db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/models/commissioning_document_template/prison.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def context
aliases: kase.subject_aliases,
date_range: data_request_area.request_dates,
deadline:,
data_required: data_request_area.data_required || default_data_required,
data_required: data_request_area.data_request.decorate.data_required || default_data_required,
)
end
end
Expand Down
2 changes: 1 addition & 1 deletion app/models/commissioning_document_template/probation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def context
crn: kase.case_reference_number,
date_range: data_request_area.request_dates,
deadline:,
data_required: data_request_area.data_required || default_data_required,
data_required: data_request_area.data_request.decorate.data_required || default_data_required,
)
end
end
Expand Down

0 comments on commit 43e80db

Please sign in to comment.