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
iv
gitlab-ce
Commits
21842cf9
Commit
21842cf9
authored
Jun 27, 2016
by
Robert Speicher
1
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'mark-done-todo-id' into 'master'
Correctly return todo ID after creating todo See merge request !4941
parents
121c5c83
d17ab054
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
app/services/todo_service.rb
app/services/todo_service.rb
+2
-1
No files found.
app/services/todo_service.rb
View file @
21842cf9
...
...
@@ -159,8 +159,9 @@ class TodoService
def
create_todos
(
users
,
attributes
)
Array
(
users
).
map
do
|
user
|
next
if
pending_todos
(
user
,
attributes
).
exists?
Todo
.
create
(
attributes
.
merge
(
user_id:
user
.
id
))
todo
=
Todo
.
create
(
attributes
.
merge
(
user_id:
user
.
id
))
user
.
update_todos_count_cache
todo
end
end
...
...
iv
@iv
mentioned in commit
4778df1c
·
Jan 12, 2017
mentioned in commit
4778df1c
mentioned in commit 4778df1ce25b18d88e587e16c72e8f14488b8b88
Toggle commit list
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