Skip to content
Snippets Groups Projects

Fixes #1096 Documents title should not be over-wriiten by fileName

Merged Fixes #1096 Documents title should not be over-wriiten by fileName
Merged Uma requested to merge uma.s/vtigercrm:title_value_in_Documents into master
+ 4
1
Compare changes
  • Side-by-side
  • Inline
@@ -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, ''));
}
}
},
Loading