Skip to content

Commit

Permalink
Removed reference to condition modifier
Browse files Browse the repository at this point in the history
condition modifier was removed from models in ManageIQ/manageiq#16213

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1633606
  • Loading branch information
h-kataria committed Sep 27, 2018
1 parent 7473cb1 commit 94d6a95
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions app/controllers/miq_policy_controller/conditions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ def condition_edit
condition = adding ? Condition.new : Condition.find(@condition.id) # Get new or existing record
condition.description = @edit[:new][:description]
condition.notes = @edit[:new][:notes]
condition.modifier = @edit[:new][:modifier]
condition.towhat = @edit[:new][:towhat] if adding # Set the proper model if adding a record
exp_remove_tokens(@edit[:new][:expression])
condition.expression = MiqExpression.new(@edit[:new][:expression])
Expand Down Expand Up @@ -173,7 +172,6 @@ def condition_build_edit_screen
@edit[:condition_id] = @condition.id
@edit[:new][:description] = @condition.description
@edit[:new][:notes] = @condition.notes
@edit[:new][:modifier] = @condition.modifier.nil? ? "allow" : @condition.modifier

@edit[:new][:expression] = @condition.expression.kind_of?(MiqExpression) ? @condition.expression.exp : nil
@edit[:new][:applies_to_exp] = @condition.applies_to_exp.kind_of?(MiqExpression) ? @condition.applies_to_exp.exp : nil
Expand Down

0 comments on commit 94d6a95

Please sign in to comment.