[pve-devel] [PATCH manager 3/3] check if storage is in the selector
Dietmar Maurer
dietmar at proxmox.com
Thu Jul 13 06:41:29 CEST 2017
> diff --git a/www/manager6/lxc/ResourceEdit.js
> b/www/manager6/lxc/ResourceEdit.js
> index c2e1f181..9efb5116 100644
> --- a/www/manager6/lxc/ResourceEdit.js
> +++ b/www/manager6/lxc/ResourceEdit.js
> @@ -400,8 +400,9 @@ Ext.define('PVE.lxc.MountPointInputPanel', {
> return;
> }
> var rec = f.store.getById(value);
> - if (rec.data.type === 'zfs' ||
> - rec.data.type === 'zfspool') {
> + if (rec &&
> + (rec.data.type === 'zfs' ||
> + rec.data.type === 'zfspool')) {
> me.quota.setDisabled(true);
> me.quota.setValue(false);
> } else {
> --
But we use rec afterwards:
if (rec.data.type === 'iscsi') {
Above check would also help here?
More information about the pve-devel
mailing list