Commit 8bcd508b authored by Fatih Acet's avatar Fatih Acet

Add lock version to issuable helpers

parent 1414cfae
...@@ -58,7 +58,8 @@ module IssuableActions ...@@ -58,7 +58,8 @@ module IssuableActions
title_text: issuable.title, title_text: issuable.title,
description: view_context.markdown_field(issuable, :description), description: view_context.markdown_field(issuable, :description),
description_text: issuable.description, description_text: issuable.description,
task_status: issuable.task_status task_status: issuable.task_status,
lock_version: issuable.lock_version
} }
if issuable.edited? if issuable.edited?
......
...@@ -269,6 +269,7 @@ module IssuablesHelper ...@@ -269,6 +269,7 @@ module IssuablesHelper
markdownPreviewPath: preview_markdown_path(parent), markdownPreviewPath: preview_markdown_path(parent),
markdownDocsPath: help_page_path('user/markdown'), markdownDocsPath: help_page_path('user/markdown'),
markdownVersion: issuable.cached_markdown_version, markdownVersion: issuable.cached_markdown_version,
lockVersion: issuable.lock_version,
issuableTemplates: issuable_templates(issuable), issuableTemplates: issuable_templates(issuable),
initialTitleHtml: markdown_field(issuable, :title), initialTitleHtml: markdown_field(issuable, :title),
initialTitleText: issuable.title, initialTitleText: issuable.title,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment