[freeside-commits] freeside/httemplate/config config-view.cgi, 1.27, 1.28
Ivan,,,
ivan at wavetail.420.am
Thu Apr 30 19:43:26 PDT 2009
Update of /home/cvs/cvsroot/freeside/httemplate/config
In directory wavetail.420.am:/tmp/cvs-serv3638
Modified Files:
config-view.cgi
Log Message:
view all overrides when asked, even the ones without values. hmm :/ RT#5218
Index: config-view.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/config/config-view.cgi,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -d -r1.27 -r1.28
--- config-view.cgi 1 May 2009 01:07:45 -0000 1.27
+++ config-view.cgi 1 May 2009 02:43:24 -0000 1.28
@@ -58,16 +58,7 @@
% #$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 @@
<%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);
+#}
</%once>
<%init>
More information about the freeside-commits
mailing list