X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fconfig%2Fconfig-view.cgi;h=bb6a3ca0bf33bc514074ebfbb0289d6be3f8ba59;hb=983584fdcdfb282750f6b40beb5e1c43cc498274;hp=534de02314a1fa7a30fd2b98fc770ae56fb3c22e;hpb=8ec90cfede14acdd48e6a31c32cc911404b849d5;p=freeside.git diff --git a/httemplate/config/config-view.cgi b/httemplate/config/config-view.cgi index 534de0231..bb6a3ca0b 100644 --- a/httemplate/config/config-view.cgi +++ b/httemplate/config/config-view.cgi @@ -58,16 +58,7 @@ Click on a configuration value to change it. % #$height = % } % -% my @agents = (); -% if ( $page_agent ) { -% @agents = ( $page_agent ); -% } else { -% @agents = ( -% '', -% grep { defined( _config_agentonly($conf, $i->key, $_->agentnum) ) } -% @all_agents -% ); -% } +% my @agents = $page_agent ? ( $page_agent ) : ( '', @all_agents ); % % foreach my $agent ( @agents ) { % my $agentnum = $agent ? $agent->agentnum : ''; @@ -209,13 +200,15 @@ Click on a configuration value to change it. <%once> #should probably be a Conf method. what else would need to use it? -sub _config_agentonly { - my($self,$name,$agentnum)=@_; - my $hashref = { 'name' => $name }; - $hashref->{agentnum} = $agentnum; - local $FS::Record::conf = undef; # XXX evil hack prevents recursion - FS::Record::qsearchs('conf', $hashref); -} +#not even us, apparantly... +# defined( _config_agentonly($conf, $i->key, $_->agentnum) ) +#sub _config_agentonly { +# my($self,$name,$agentnum)=@_; +# my $hashref = { 'name' => $name }; +# $hashref->{agentnum} = $agentnum; +# local $FS::Record::conf = undef; # XXX evil hack prevents recursion +# FS::Record::qsearchs('conf', $hashref); +#} <%init>