Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2017-08-31 03:33:24 +0300
committerMike Greiling <mike@pixelcog.com>2017-08-31 03:33:24 +0300
commitcf37f0b173abacaef36660f1c9875f8fee8b78d8 (patch)
tree9b65bc7b21fe0d1dd8da7a3a00d2ed94071186a9 /app/helpers/visibility_level_helper.rb
parent68de5dcba28d83089fd563434ba9d1ba1d882b76 (diff)
fix variable naming conflict
Diffstat (limited to 'app/helpers/visibility_level_helper.rb')
-rw-r--r--app/helpers/visibility_level_helper.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/helpers/visibility_level_helper.rb b/app/helpers/visibility_level_helper.rb
index 4b4f7c6a57a..46867d2d974 100644
--- a/app/helpers/visibility_level_helper.rb
+++ b/app/helpers/visibility_level_helper.rb
@@ -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