From 4c1a59f217a7c8a8ecbfc17a7124b2024ed93e5c Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Tue, 4 Dec 2012 16:01:37 +0100 Subject: [PATCH] Fix migration of measure filters --- .../WEB-INF/db/migrate/357_move_existing_measure_filters.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sonar-server/src/main/webapp/WEB-INF/db/migrate/357_move_existing_measure_filters.rb b/sonar-server/src/main/webapp/WEB-INF/db/migrate/357_move_existing_measure_filters.rb index 3fad50fc152..6b83c961d89 100644 --- a/sonar-server/src/main/webapp/WEB-INF/db/migrate/357_move_existing_measure_filters.rb +++ b/sonar-server/src/main/webapp/WEB-INF/db/migrate/357_move_existing_measure_filters.rb @@ -118,9 +118,9 @@ class MoveExistingMeasureFilters < ActiveRecord::Migration data << "c#{metric_criteria_id}_metric=#{old.kee}" data << "c#{metric_criteria_id}_op=#{operator_code(old.operator)}" data << "c#{metric_criteria_id}_val=#{old.value}" - data << "c#{metric_criteria_id}_period=#{old.period}" if old.period + data << "c#{metric_criteria_id}_period=#{old_filter.period_index}" if old_filter.period_index metric_criteria_id += 1 - elsif old.family=='direct-children' && op.text_value=='true' + elsif old.family=='direct-children' && old.text_value=='true' data << "onBaseComponents=true" end end -- 2.39.5