Fix step position in activity [SCI-12072]

This commit is contained in:
Anton 2025-06-27 14:47:48 +02:00
parent 169f743a8a
commit 9103ede18a
2 changed files with 4 additions and 3 deletions

View file

@ -87,7 +87,8 @@ class StepResultsController < ApplicationController
my_module: my_module.id, my_module: my_module.id,
step: step.id, step: step.id,
result: result.id, result: result.id,
position: step.position + 1 step_position: { id: step.id,
value_for: 'position_plus_one' }
}) })
end end
end end

View file

@ -392,8 +392,8 @@ en:
remove_head_of_project_html: "%{user} removed user %{user_target} as head of project %{project}." remove_head_of_project_html: "%{user} removed user %{user_target} as head of project %{project}."
task_steps_loaded_from_template_html: "%{user} added %{count} steps from template %{protocol} to task %{my_module}." task_steps_loaded_from_template_html: "%{user} added %{count} steps from template %{protocol} to task %{my_module}."
protocol_steps_loaded_from_template_html: "%{user} added %{count} steps from template %{protocol}." protocol_steps_loaded_from_template_html: "%{user} added %{count} steps from template %{protocol}."
step_and_result_linked_html: "%{user} linked result <strong>%{result}</strong> and step <strong>%{position}</strong> <strong>%{step}</strong> on task <strong>%{my_module}</strong>." step_and_result_linked_html: "%{user} linked result <strong>%{result}</strong> and step <strong>%{step_position}</strong> <strong>%{step}</strong> on task <strong>%{my_module}</strong>."
step_and_result_unlinked_html: "%{user} unlinked result <strong>%{result}</strong> and step <strong>%{position}</strong> <strong>%{step}</strong> on task <strong>%{my_module}</strong>." step_and_result_unlinked_html: "%{user} unlinked result <strong>%{result}</strong> and step <strong>%{step_position}</strong> <strong>%{step}</strong> on task <strong>%{my_module}</strong>."
activity_name: activity_name:
create_project: "Project created" create_project: "Project created"
edit_project: "Project edited" edit_project: "Project edited"