Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
955bd323
Commit
955bd323
authored
Jul 08, 2021
by
Vitaly Slobodin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use selected_group parameter
parent
fa55b7e7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
ee/app/helpers/subscriptions_helper.rb
ee/app/helpers/subscriptions_helper.rb
+1
-1
ee/spec/helpers/subscriptions_helper_spec.rb
ee/spec/helpers/subscriptions_helper_spec.rb
+1
-1
No files found.
ee/app/helpers/subscriptions_helper.rb
View file @
955bd323
...
...
@@ -19,7 +19,7 @@ module SubscriptionsHelper
def
addon_data
(
group
)
{
group_data:
[
present_group
(
group
)].
to_json
,
namespace_id:
params
[
:
namespace_id
],
namespace_id:
params
[
:
selected_group
],
source:
params
[
:source
]
}
end
...
...
ee/spec/helpers/subscriptions_helper_spec.rb
View file @
955bd323
...
...
@@ -141,7 +141,7 @@ RSpec.describe SubscriptionsHelper do
before
do
allow
(
helper
).
to
receive
(
:current_user
).
and_return
(
user
)
allow
(
helper
).
to
receive
(
:params
).
and_return
({
namespace_id
:
group
.
id
.
to_s
,
source:
'some_source'
})
allow
(
helper
).
to
receive
(
:params
).
and_return
({
selected_group
:
group
.
id
.
to_s
,
source:
'some_source'
})
group
.
add_owner
(
user
)
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment