Commit 1c0b357da9b5a3f1e523c2b448ab624e047e45b3
1 parent
282c0572
Exists in
colab
and in
4 other branches
Setting the code attribute for native metric configurations.
Signed off by: Rafael Reggiani Manzo <rr.manzo@gmail.com>
Showing
1 changed file
with
1 additions
and
0 deletions
Show diff stats
app/controllers/metric_configurations_controller.rb
| @@ -16,6 +16,7 @@ class MetricConfigurationsController < BaseMetricConfigurationsController | @@ -16,6 +16,7 @@ class MetricConfigurationsController < BaseMetricConfigurationsController | ||
| 16 | super | 16 | super |
| 17 | @metric_configuration.metric = KalibroGatekeeperClient::Entities::BaseTool.find_by_name(params[:base_tool_name]).metric params[:metric_name] | 17 | @metric_configuration.metric = KalibroGatekeeperClient::Entities::BaseTool.find_by_name(params[:base_tool_name]).metric params[:metric_name] |
| 18 | @metric_configuration.base_tool_name = params[:base_tool_name] | 18 | @metric_configuration.base_tool_name = params[:base_tool_name] |
| 19 | + @metric_configuration.code = @metric_configuration.metric.code | ||
| 19 | respond_to do |format| | 20 | respond_to do |format| |
| 20 | create_and_redir(format) | 21 | create_and_redir(format) |
| 21 | end | 22 | end |