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