[freeside-commits] freeside/httemplate/edit agent.cgi, 1.11, 1.12 agent_type.cgi, 1.12, 1.13

Ivan,,, ivan at wavetail.420.am
Thu Dec 15 11:36:52 PST 2005


Update of /home/cvs/cvsroot/freeside/httemplate/edit
In directory wavetail:/tmp/cvs-serv25286

Modified Files:
	agent.cgi agent_type.cgi 
Log Message:
fix bug when adding new agent types, noticed by Julius Igugu

Index: agent_type.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/agent_type.cgi,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- agent_type.cgi	1 Dec 2005 19:17:05 -0000	1.12
+++ agent_type.cgi	15 Dec 2005 19:36:49 -0000	1.13
@@ -42,7 +42,10 @@
                'hashref'   => { 'disabled' => '' },
                'select'    => 'part_pkg.*',
                'addl_from' => 'LEFT JOIN type_pkgs USING ( pkgpart )',
-               'extra_sql' => 'OR typenum = '. $agent_type->typenum,
+               'extra_sql' => ( $agent_type->typenum
+                                  ? 'OR typenum = '. $agent_type->typenum
+                                  : ''
+                              ),
             })
    ) {
 %>

Index: agent.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/agent.cgi,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- agent.cgi	15 Oct 2005 11:29:53 -0000	1.11
+++ agent.cgi	15 Dec 2005 19:36:49 -0000	1.12
@@ -75,7 +75,7 @@
     my @queueids = sort { $a <=> $b } keys %queues;
   %>
     <TR>
-      <TD ALIGN="right">Ticketing</TD>
+      <TD ALIGN="right">Ticketing queue</TD>
       <TD>
         <SELECT NAME="ticketing_queueid">
           <OPTION VALUE=""><%= $default_queue %>



More information about the freeside-commits mailing list