diff options
author | Jonathan Prykop <jonathan@freeside.biz> | 2016-03-11 19:41:49 -0600 |
---|---|---|
committer | Jonathan Prykop <jonathan@freeside.biz> | 2016-03-11 19:41:49 -0600 |
commit | 953599b551437744b6385496d425117e468b0851 (patch) | |
tree | 550dafcd0e188bc8bb18acd0b543a4f71b69c4ca /httemplate | |
parent | bb7f04b50d02e5699f740b3511524a32c1a276af (diff) |
RT#21463 Option to show disabled package definitions [v3 merge]
Diffstat (limited to 'httemplate')
-rw-r--r-- | httemplate/elements/select-part_pkg.html | 4 | ||||
-rw-r--r-- | httemplate/misc/xmlhttp-part_pkg.cgi | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/httemplate/elements/select-part_pkg.html b/httemplate/elements/select-part_pkg.html index 2bd425e8d..715ae99c0 100644 --- a/httemplate/elements/select-part_pkg.html +++ b/httemplate/elements/select-part_pkg.html @@ -125,6 +125,7 @@ if ($opt{'toggle_disabled'}) { order_by pre_options post_options + select ) ) { die "Cannot use toggle_disabled with $someopt" if exists $opt{$someopt}; @@ -155,6 +156,9 @@ if ( exists($opt{'classnum'}) && defined($opt{'classnum'}) ) { die 'Use of toggle_disabled with classnum has not been implemented' if exists $hash{'classnum'}; +# CAUTION: For proper functioning of toggle_disabled, +# please ensure changes to default options are synced with misc/xmlhttp-part_pkg.cgi + $opt{'extra_sql'} .= ( keys(%hash) ? ' AND ' : ' WHERE ' ). FS::part_pkg->curuser_pkgs_sql; diff --git a/httemplate/misc/xmlhttp-part_pkg.cgi b/httemplate/misc/xmlhttp-part_pkg.cgi index 187833025..c8e6f938d 100644 --- a/httemplate/misc/xmlhttp-part_pkg.cgi +++ b/httemplate/misc/xmlhttp-part_pkg.cgi @@ -26,6 +26,4 @@ my @return = map { } } @records; -print STDERR Dumper(\@return); - </%init> |