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
9dc2e7f2
Commit
9dc2e7f2
authored
Nov 17, 2019
by
raju249
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add check for empty keys
parent
8957e46a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
app/controllers/concerns/notes_actions.rb
app/controllers/concerns/notes_actions.rb
+1
-1
No files found.
app/controllers/concerns/notes_actions.rb
View file @
9dc2e7f2
...
...
@@ -63,7 +63,7 @@ module NotesActions
json
.
merge!
(
note_json
(
@note
))
end
if
@note
.
errors
&&
@note
.
errors
.
keys
!=
[
:commands_only
]
if
@note
.
errors
&&
@note
.
errors
.
keys
!=
[
]
&&
@note
.
errors
.
keys
!=
[
:commands_only
]
render
json:
json
,
status:
422
else
render
json:
json
...
...
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