RT#21463 Option to show disabled package definitions [bug fix]
authorJonathan Prykop <jonathan@freeside.biz>
Wed, 9 Mar 2016 19:06:06 +0000 (13:06 -0600)
committerJonathan Prykop <jonathan@freeside.biz>
Wed, 9 Mar 2016 19:06:06 +0000 (13:06 -0600)
httemplate/elements/select-part_pkg.html

index caceb5c..1f7b42f 100644 (file)
@@ -154,7 +154,7 @@ if ( exists($opt{'classnum'}) && defined($opt{'classnum'}) ) {
 
 # currently can't handle this, either
 die 'Use of toggle_disabled with classnum has not been implemented'
-  if exists $hash{'classnum'};
+  if $opt{'toggle_disabled'} && exists($hash{'classnum'});
 
 # CAUTION: For proper functioning of toggle_disabled,
 # please ensure changes to default options are synced with misc/xmlhttp-part_pkg.cgi