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

refs #4855
This commit is contained in:
Aditya Toshniwal authored and Akshay Joshi committed 2020-10-09 11:46:32 +05:30
1 parent 1c796720be
commit a4e746c5a4
1 file changed
+1 -3
@@ -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);
}