diff --git a/app/controllers/step_comments_controller.rb b/app/controllers/step_comments_controller.rb index 4cf76b4c1..31ca5864a 100644 --- a/app/controllers/step_comments_controller.rb +++ b/app/controllers/step_comments_controller.rb @@ -190,7 +190,7 @@ class StepCommentsController < ApplicationController message_items: { my_module: @step.my_module.id, step: @step.id, - step_position: { id: @step.id, value_for: 'position' } + step_position: { id: @step.id, value_for: 'position_plus_one' } }) end end diff --git a/app/controllers/steps_controller.rb b/app/controllers/steps_controller.rb index f29536ada..6deb97f3c 100644 --- a/app/controllers/steps_controller.rb +++ b/app/controllers/steps_controller.rb @@ -275,7 +275,7 @@ class StepsController < ApplicationController my_module: @my_module.id, step: @chk_item.checklist.step.id, step_position: { id: @chk_item.checklist.step.id, - value_for: 'position' }, + value_for: 'position_plus_one' }, checkbox: text_activity, num_completed: completed_items.to_s, num_all: all_items.to_s) @@ -609,7 +609,7 @@ class StepsController < ApplicationController def log_activity(type_of, project = nil, message_items = {}) default_items = { step: @step.id, - step_position: { id: @step.id, value_for: 'position' } } + step_position: { id: @step.id, value_for: 'position_plus_one' } } message_items = default_items.merge(message_items) Activities::CreateActivityService diff --git a/app/utilities/wopi_util.rb b/app/utilities/wopi_util.rb index 8a1d04ca1..90e3effce 100644 --- a/app/utilities/wopi_util.rb +++ b/app/utilities/wopi_util.rb @@ -82,7 +82,7 @@ module WopiUtil type_of = :edit_wopi_file_on_step_in_repository default_step_items = { step: @asset.step.id, - step_position: { id: @asset.step.id, value_for: 'position' }, + step_position: { id: @asset.step.id, value_for: 'position_plus_one' }, asset_name: { id: @asset.id, value_for: 'file_file_name' }, action: action } message_items = { protocol: @protocol.id }