Skip to content
Snippets Groups Projects
Commit 95662f2e authored by Uma's avatar Uma
Browse files

Fixes #1096 Documents title not updated with fileName

parent 8143a415
No related branches found
No related tags found
No related merge requests found
......@@ -198,7 +198,10 @@ Vtiger.Class('Documents_Index_Js', {
container.find('.fileDetails').text(fileName + ' (' + fileSize + ')');
var fileParts = fileName.split('.');
var fileType = fileParts[fileParts.length - 1];
container.find('[name="notes_title"]').val(fileName.replace('.'+fileType, ''));
let notesTitle = container.find('[name="notes_title"]').val();
if (!notesTitle.trim()) {
container.find('[name="notes_title"]').val(fileName.replace('.' + fileType, ''));
}
}
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment