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
f8a1faa3
Commit
f8a1faa3
authored
Apr 04, 2019
by
Douglas Barbosa Alexandre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix params passed over to PreviewMarkdownService
parent
003d0641
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
ee/app/controllers/projects/merge_requests/drafts_controller.rb
.../controllers/projects/merge_requests/drafts_controller.rb
+1
-1
ee/app/serializers/epic_entity.rb
ee/app/serializers/epic_entity.rb
+1
-1
No files found.
ee/app/controllers/projects/merge_requests/drafts_controller.rb
View file @
f8a1faa3
...
...
@@ -103,7 +103,7 @@ class Projects::MergeRequests::DraftsController < Projects::MergeRequests::Appli
end
def
render_draft_note
(
note
)
params
=
{
quick_actions_target_id:
merge_request
.
id
,
quick_actions_
target_type:
'MergeRequest'
,
text:
note
.
note
}
params
=
{
target_id:
merge_request
.
id
,
target_type:
'MergeRequest'
,
text:
note
.
note
}
result
=
PreviewMarkdownService
.
new
(
@project
,
current_user
,
params
).
execute
markdown_params
=
{
markdown_engine:
result
[
:markdown_engine
],
issuable_state_filter_enabled:
true
}
...
...
ee/app/serializers/epic_entity.rb
View file @
f8a1faa3
...
...
@@ -40,6 +40,6 @@ class EpicEntity < IssuableEntity
end
expose
:preview_note_path
do
|
epic
|
preview_markdown_path
(
epic
.
group
,
quick_actions_target_type:
'Epic'
,
quick_actions_
target_id:
epic
.
id
)
preview_markdown_path
(
epic
.
group
,
target_type:
'Epic'
,
target_id:
epic
.
id
)
end
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