Skip to content

Commit

Permalink
Merge pull request #218 from unboxed/fix-pre-commencement-conditions
Browse files Browse the repository at this point in the history
Fix all pre-commencement conditions showing
  • Loading branch information
Celia Collins authored Mar 12, 2024
2 parents 4f99f6c + c8b2562 commit a7fa16d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Respond to pre-commencement conditions
</h3>
<ul class="app-task-list__items" id="pre-commencement-condition-validation-requests">
<% @validation_requests["data"]["pre_commencement_condition_validation_requests"].group_by{ |request| request["condition_id"] }.each do |id, group| %>
<% @validation_requests["data"]["pre_commencement_condition_validation_requests"].group_by{ |request| request["owner_id"] }.each do |id, group| %>
<% request = group.sort_by{ |request| request["created_at"] }.last %>
<li class="govuk-task-list__item govuk-task-list__item--with-link">
<div class="govuk-task-list__name-and-hint">
Expand Down
2 changes: 1 addition & 1 deletion db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.

ActiveRecord::Schema[7.0].define(version: 2024_01_02_155438) do
ActiveRecord::Schema[7.1].define(version: 2024_01_02_155438) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"

Expand Down

0 comments on commit a7fa16d

Please sign in to comment.