summaryrefslogtreecommitdiff
path: root/app/assets
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2019-03-07 12:35:07 +0000
committerPhil Hughes <me@iamphill.com>2019-03-07 12:35:07 +0000
commit6a3a28bfdec6feeebd880d048f8577906b48aaa7 (patch)
treecb924cfa108106d21ff5d400a0a83f20ff8ec17c /app/assets
parent45b3c5420c1a45595211f941bac23ad9f2188af7 (diff)
downloadgitlab-ce-6a3a28bfdec6feeebd880d048f8577906b48aaa7.tar.gz
Fixed the blob editor deleting all content for files
This only happens for files that the path consists of only numbers Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/58578
Diffstat (limited to 'app/assets')
-rw-r--r--app/assets/javascripts/blob_edit/blob_bundle.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/blob_edit/blob_bundle.js b/app/assets/javascripts/blob_edit/blob_bundle.js
index 5f64175362d..6aaf5bf7296 100644
--- a/app/assets/javascripts/blob_edit/blob_bundle.js
+++ b/app/assets/javascripts/blob_edit/blob_bundle.js
@@ -13,7 +13,7 @@ export default () => {
if (editBlobForm.length) {
const urlRoot = editBlobForm.data('relativeUrlRoot');
const assetsPath = editBlobForm.data('assetsPrefix');
- const filePath = editBlobForm.data('blobFilename');
+ const filePath = `${editBlobForm.data('blobFilename')}`;
const currentAction = $('.js-file-title').data('currentAction');
const projectId = editBlobForm.data('project-id');
const isMarkdown = editBlobForm.data('is-markdown');