mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Unset compression ratio if it is an empty string in Backup module. Fixes #2582
This commit is contained in:
committed by
Akshay Joshi
parent
bff48e0b2d
commit
c7686dee05
@@ -773,6 +773,12 @@ TODO LIST FOR BACKUP:
|
||||
);
|
||||
}
|
||||
|
||||
// Remove ratio attribute from model if it has empty string.
|
||||
// The valid value can be between 0 to 9.
|
||||
if (_.isEmpty(this.view.model.get('ratio'))) {
|
||||
this.view.model.unset('ratio');
|
||||
}
|
||||
|
||||
var self = this,
|
||||
baseUrl = url_for('backup.create_object_job', {'sid': treeInfo.server._id}),
|
||||
args = this.view.model.toJSON();
|
||||
|
||||
Reference in New Issue
Block a user