]> git.proxmox.com Git - pve-common.git/commitdiff
fix SectionConfig updateSchema for classes without plugins.
authorDietmar Maurer <dietmar@proxmox.com>
Fri, 18 Sep 2015 05:18:00 +0000 (07:18 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 18 Sep 2015 05:18:00 +0000 (07:18 +0200)
src/PVE/SectionConfig.pm

index f6646f3398a1ec69e9e6c3ae1a71025641d4fbc4..be13056eb1106468256fb05179f03b8b630d02b0 100644 (file)
@@ -119,6 +119,9 @@ sub updateSchema {
 
        my $modifyable = 0;
 
 
        my $modifyable = 0;
 
+       my $copts = $class->options();
+       $modifyable = 1 if defined($copts->{$p}) && !$copts->{$p}->{fixed};
+
        foreach my $t (keys %$plugins) {
            my $opts = $pdata->{options}->{$t} || {};
            next if !defined($opts->{$p});
        foreach my $t (keys %$plugins) {
            my $opts = $pdata->{options}->{$t} || {};
            next if !defined($opts->{$p});