]> git.proxmox.com Git - pve-manager.git/commitdiff
fix compression selection in backup window
authorDominik Csapak <d.csapak@proxmox.com>
Thu, 31 Mar 2016 12:45:10 +0000 (14:45 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 31 Mar 2016 15:10:10 +0000 (17:10 +0200)
we wrongly assumed, that no compression argument for
vzdump meant 'no compression', instead it means 'lzo'

this patch mirrors that behaviour on the gui

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
www/manager6/dc/Backup.js
www/manager6/form/CompressionSelector.js

index 1a2a2419ee6db489034f77955e01085ad44de39b..5b059b66784c2c1df229a5fcc14e020382aef355 100644 (file)
@@ -172,7 +172,7 @@ Ext.define('PVE.dc.BackupEdit', {
                fieldLabel: gettext('Compression'),
                name: 'compress',
                deleteEmpty: me.create ? false : true,
-               value: me.create ? 'lzo' : ''
+               value: 'lzo'
            },
            {
                xtype: 'pveBackupModeSelector',
index 1a5299f090defcb9c1853949dca4c83fdf3444fc..03669e04d2f26cf9b7de6ebeb1985230cef9bab0 100644 (file)
@@ -2,7 +2,7 @@ Ext.define('PVE.form.CompressionSelector', {
     extend: 'PVE.form.KVComboBox',
     alias: ['widget.pveCompressionSelector'],
     comboItems: [
-                ['__default__', PVE.Utils.noneText],
+                ['0', PVE.Utils.noneText],
                 ['lzo', 'LZO (' + gettext('fast') + ')'],
                 ['gzip', 'GZIP (' + gettext('good') + ')']
     ]