diff --git a/VERSION b/VERSION index a50908ca3..8ba2fd98c 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.42.0 +1.42.0.1 diff --git a/app/assets/stylesheets/reports.scss b/app/assets/stylesheets/reports.scss index d3d2689f9..940f57c20 100644 --- a/app/assets/stylesheets/reports.scss +++ b/app/assets/stylesheets/reports.scss @@ -255,7 +255,6 @@ label { .user-time { color: $color-silver-chalice; - white-space: nowrap; } .report-element-body { @@ -462,7 +461,6 @@ label { .user-time { display: inline-block; - white-space: nowrap; } } diff --git a/app/controllers/results_controller.rb b/app/controllers/results_controller.rb index ff0ce393f..6c15331f1 100644 --- a/app/controllers/results_controller.rb +++ b/app/controllers/results_controller.rb @@ -41,7 +41,12 @@ class ResultsController < ApplicationController end def list - @results = @my_module.results.active + if params[:with_linked_step_id].present? + step = @my_module.protocol.steps.find_by(id: params[:with_linked_step_id]) + @results = @my_module.results.where(archived: false).or(@my_module.results.where(id: step.results.select(:id))) + else + @results = @my_module.results.active + end update_and_apply_user_sort_preference! end diff --git a/app/controllers/step_results_controller.rb b/app/controllers/step_results_controller.rb index 468cbf9d5..35afce7ff 100644 --- a/app/controllers/step_results_controller.rb +++ b/app/controllers/step_results_controller.rb @@ -87,7 +87,8 @@ class StepResultsController < ApplicationController my_module: my_module.id, step: step.id, result: result.id, - position: step.position + 1 + 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 ecc26234b..cf09bb029 100644 --- a/app/controllers/steps_controller.rb +++ b/app/controllers/steps_controller.rb @@ -285,7 +285,7 @@ class StepsController < ApplicationController render json: { paginated: true, next_page: steps.next_page, - data: steps.map { |step| [step.id, step.name] } + data: steps.map { |step| [step.id, step.name, { position: step.position }] } } end diff --git a/app/javascript/vue/protocol/modals/link_results.vue b/app/javascript/vue/protocol/modals/link_results.vue index 55de5e4a8..7c092cefe 100644 --- a/app/javascript/vue/protocol/modals/link_results.vue +++ b/app/javascript/vue/protocol/modals/link_results.vue @@ -11,7 +11,10 @@ {{ i18n.t('protocols.steps.modals.link_results.title') }} -