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
0
Merge Requests
0
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
Léo-Paul Géneau
gitlab-ce
Commits
50c1a989
Commit
50c1a989
authored
Jun 29, 2018
by
Jan Provaznik
Committed by
Jarka Kadlecová
Jul 03, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More EE->CE fixes
parent
ef0df760
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
3 additions
and
6 deletions
+3
-6
app/controllers/concerns/todos_actions.rb
app/controllers/concerns/todos_actions.rb
+0
-1
app/controllers/projects/todos_controller.rb
app/controllers/projects/todos_controller.rb
+1
-0
app/helpers/todos_helper.rb
app/helpers/todos_helper.rb
+1
-3
app/models/todo.rb
app/models/todo.rb
+1
-1
app/services/todo_service.rb
app/services/todo_service.rb
+0
-1
No files found.
app/controllers/concerns/todos_actions.rb
View file @
50c1a989
module
TodosActions
module
TodosActions
include
Gitlab
::
Utils
::
StrongMemoize
extend
ActiveSupport
::
Concern
extend
ActiveSupport
::
Concern
def
create
def
create
...
...
app/controllers/projects/todos_controller.rb
View file @
50c1a989
class
Projects::TodosController
<
Projects
::
ApplicationController
class
Projects::TodosController
<
Projects
::
ApplicationController
include
Gitlab
::
Utils
::
StrongMemoize
include
TodosActions
include
TodosActions
before_action
:authenticate_user!
,
only:
[
:create
]
before_action
:authenticate_user!
,
only:
[
:create
]
...
...
app/helpers/todos_helper.rb
View file @
50c1a989
...
@@ -169,9 +169,7 @@ module TodosHelper
...
@@ -169,9 +169,7 @@ module TodosHelper
end
end
def
todo_group_options
def
todo_group_options
groups
=
current_user
.
authorized_groups
groups
=
current_user
.
authorized_groups
.
map
do
|
group
|
groups
=
groups
.
map
do
|
group
|
{
id:
group
.
id
,
text:
group
.
full_name
}
{
id:
group
.
id
,
text:
group
.
full_name
}
end
end
...
...
app/models/todo.rb
View file @
50c1a989
...
@@ -83,7 +83,7 @@ class Todo < ActiveRecord::Base
...
@@ -83,7 +83,7 @@ class Todo < ActiveRecord::Base
end
end
def
parent
def
parent
project
||
group
project
end
end
def
unmergeable?
def
unmergeable?
...
...
app/services/todo_service.rb
View file @
50c1a989
...
@@ -285,7 +285,6 @@ class TodoService
...
@@ -285,7 +285,6 @@ class TodoService
def
attributes_for_target
(
target
)
def
attributes_for_target
(
target
)
attributes
=
{
attributes
=
{
project_id:
target
&
.
project
&
.
id
,
project_id:
target
&
.
project
&
.
id
,
group_id:
target
.
respond_to?
(
:group
)
?
target
.
group_id
:
nil
,
target_id:
target
.
id
,
target_id:
target
.
id
,
target_type:
target
.
class
.
name
,
target_type:
target
.
class
.
name
,
commit_id:
nil
commit_id:
nil
...
...
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