Ensure that '.sql' extension is added when saving a file with SQL format. 

refs #4855
This commit is contained in:
Aditya Toshniwal 2020-10-09 11:46:32 +05:30 committed by Akshay Joshi
parent 1c796720be
commit a4e746c5a4

View File

@ -157,9 +157,7 @@ module.exports = Alertify.dialog('createModeDlg', function() {
sep = '\\';
}
if ((!newFile.includes('.') ||
newFile.split('.').pop().includes(sep)) &&
ext != '*') {
if (ext != '*') {
newFile = newFile + '.' + ext;
$('.storage_dialog #uploader .input-path').val(newFile);
}