violation.review.reassign(current_user, assignee, params)
violation.save
- render :partial => "resource/violation", :locals => {:violation => violation}
+ display_violation
end
# GET
# refresh the violation that has been modified
violation.reload
- render :partial => "resource/violation", :locals => {:violation => violation}
+ display_violation
end
# GET
# refresh the violation that has been modified when setting the review to false positive
violation.reload
- render :partial => "resource/violation", :locals => {:violation => violation}
+ display_violation
end
# Needs to reload as the review may have been changed on the Java side by a ReviewAction
violation.review.reload
- render :partial => "resource/violation", :locals => {:violation => violation}
+ display_violation
end
# POST
if violation.review
violation.review.delete_comment(current_user, params[:comment_id].to_i)
end
- render :partial => "resource/violation", :locals => {:violation => violation}
+ display_violation
end
# GET
violation.review.resolve(current_user, params)
end
- render :partial => "resource/violation", :locals => {:violation => violation}
+ display_violation
end
# GET
action_plan = params[:action_plan_id].to_i==-1 ? nil : ActionPlan.find(params[:action_plan_id])
violation.review.link_to_action_plan(action_plan, current_user, params)
- render :partial => "resource/violation", :locals => {:violation => violation}
+ display_violation
end
# POST
end
violation.review.link_to_action_plan(nil, current_user, params)
- render :partial => "resource/violation", :locals => {:violation => violation}
+ display_violation
end