projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5031220
)
fix bug when adding new agent types, noticed by Julius Igugu
author
ivan
<ivan>
Thu, 15 Dec 2005 19:36:49 +0000
(19:36 +0000)
committer
ivan
<ivan>
Thu, 15 Dec 2005 19:36:49 +0000
(19:36 +0000)
httemplate/edit/agent.cgi
patch
|
blob
|
history
httemplate/edit/agent_type.cgi
patch
|
blob
|
history
diff --git
a/httemplate/edit/agent.cgi
b/httemplate/edit/agent.cgi
index
f8d0edc
..
cb64ad8
100755
(executable)
--- 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>
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 %>
<TD>
<SELECT NAME="ticketing_queueid">
<OPTION VALUE=""><%= $default_queue %>
diff --git
a/httemplate/edit/agent_type.cgi
b/httemplate/edit/agent_type.cgi
index
84f4b65
..
5addbbd
100755
(executable)
--- 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 )',
'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
+ : ''
+ ),
})
) {
%>
})
) {
%>