From 5915ef754d3fa6c03ba78392e37dba121eb99cde Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Sun, 24 May 2015 07:24:13 -0700 Subject: [PATCH] Don't try to disable a field that doesn't exist https://github.com/webmin/webmin/issues/214 --- virtual_feature.pl | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/virtual_feature.pl b/virtual_feature.pl index cab153a..df9f7dd 100755 --- a/virtual_feature.pl +++ b/virtual_feature.pl @@ -508,9 +508,7 @@ sub mailbox_inputs @rwreps = sort { $a cmp $b } @rwreps; @reps = sort { $a->{'rep'} cmp $b->{'rep'} } @reps; local @inputs = ( $input_name."_rwreps_opts", $input_name."_rwreps_vals", - $input_name."_rwreps_add", $input_name."_rwreps_remove", - $input_name."_roreps_opts", $input_name."_roreps_vals", - $input_name."_roreps_add", $input_name."_roreps_remove", ); + $input_name."_rwreps_add", $input_name."_rwreps_remove" ); local $hasuser = $suser || $new && $defs{'git'}; local $dis = $hasuser ? 0 : 1; local $jsenable = &js_disable_inputs([ ], \@inputs, "onClick");