diff options
author | ivan <ivan> | 2005-12-15 19:36:49 +0000 |
---|---|---|
committer | ivan <ivan> | 2005-12-15 19:36:49 +0000 |
commit | 4b7604d67c78a6507fa52dbd2d476c037a0b723d (patch) | |
tree | 0a66143ec220c180457f69f4119091a87d80db9e | |
parent | 5031220825de2900d4ff217d1892748fe0bf1ec4 (diff) |
fix bug when adding new agent types, noticed by Julius Igugu
-rwxr-xr-x | httemplate/edit/agent.cgi | 2 | ||||
-rwxr-xr-x | httemplate/edit/agent_type.cgi | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/httemplate/edit/agent.cgi b/httemplate/edit/agent.cgi index f8d0edc1a..cb64ad8cd 100755 --- a/httemplate/edit/agent.cgi +++ b/httemplate/edit/agent.cgi @@ -75,7 +75,7 @@ Agent #<%= $hashref->{agentnum} ? $hashref->{agentnum} : "(NEW)" %> 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 %> diff --git a/httemplate/edit/agent_type.cgi b/httemplate/edit/agent_type.cgi index 84f4b6599..5addbbd4c 100755 --- a/httemplate/edit/agent_type.cgi +++ b/httemplate/edit/agent_type.cgi @@ -42,7 +42,10 @@ Select which packages agents of this type may sell to customers<BR> '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 + : '' + ), }) ) { %> |