From c89968453ea959cf775d6a3048f9099289211e89 Mon Sep 17 00:00:00 2001 From: artoscinote <85488244+artoscinote@users.noreply.github.com> Date: Tue, 12 Jul 2022 10:41:58 +0200 Subject: [PATCH] Fix checklist issues [SCI-6960] (#4222) --- .../step_elements/checklist_items_controller.rb | 4 +++- app/javascript/vue/protocol/step.vue | 2 +- .../vue/protocol/step_elements/checklist.vue | 13 +++++++++++-- .../vue/protocol/step_elements/checklistItem.vue | 16 ++++++++-------- app/javascript/vue/shared/inline_edit.vue | 1 + 5 files changed, 24 insertions(+), 12 deletions(-) diff --git a/app/controllers/step_elements/checklist_items_controller.rb b/app/controllers/step_elements/checklist_items_controller.rb index 465d2a526..67feaabe9 100644 --- a/app/controllers/step_elements/checklist_items_controller.rb +++ b/app/controllers/step_elements/checklist_items_controller.rb @@ -30,7 +30,9 @@ module StepElements end def update - @checklist_item.assign_attributes(checklist_item_params) + @checklist_item.assign_attributes( + checklist_item_params.merge(last_modified_by: current_user) + ) if @checklist_item.save! if @checklist_item.saved_change_to_attribute?(:checked) diff --git a/app/javascript/vue/protocol/step.vue b/app/javascript/vue/protocol/step.vue index 2f4c346bf..766a3990b 100644 --- a/app/javascript/vue/protocol/step.vue +++ b/app/javascript/vue/protocol/step.vue @@ -15,7 +15,7 @@
-