Commit cf37f0b1 authored by Mike Greiling's avatar Mike Greiling

fix variable naming conflict

parent 68de5dcb
......@@ -165,10 +165,10 @@ module VisibilityLevelHelper
private
def visibility_level_errors_for_group(group, level_name)
group = link_to group.name, group_path(group)
group_name = link_to group.name, group_path(group)
change_visiblity = link_to 'change the visibility', edit_group_path(group)
{ reason: "the visibility of #{group} is #{group.visibility}",
{ reason: "the visibility of #{group_name} is #{group.visibility}",
instruction: " To make this group #{level_name}, you must first #{change_visiblity} of the parent group." }
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment