projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
search for missing/outdated census tract, RT#86245
[freeside.git]
/
httemplate
/
elements
/
select-agent.html
diff --git
a/httemplate/elements/select-agent.html
b/httemplate/elements/select-agent.html
index
897c982
..
2bd0095
100644
(file)
--- a/
httemplate/elements/select-agent.html
+++ b/
httemplate/elements/select-agent.html
@@
-1,15
+1,14
@@
-<
% include( '/elements/select-table.html'
,
+<
& /elements/select-table.html
,
'table' => 'agent',
'name_col' => 'agent',
'value' => $agentnum || '',
'agent_virt' => 1,
'table' => 'agent',
'name_col' => 'agent',
'value' => $agentnum || '',
'agent_virt' => 1,
- 'empty_label' =>
'all'
,
+ 'empty_label' =>
$empty_label
,
'hashref' => { 'disabled' => '' },
'order_by' => ' ORDER BY agent',
'disable_empty' => $disable_empty,
%opt,
'hashref' => { 'disabled' => '' },
'order_by' => ' ORDER BY agent',
'disable_empty' => $disable_empty,
%opt,
- )
-%>
+&>
<%init>
my %opt = @_;
<%init>
my %opt = @_;
@@
-19,6
+18,7
@@
$opt{'records'} = delete $opt{'agents'}
if $opt{'agents'};
my $curuser = $FS::CurrentUser::CurrentUser;
if $opt{'agents'};
my $curuser = $FS::CurrentUser::CurrentUser;
+my $empty_label = $opt{'empty_label'} ? $opt{'empty_label'} : 'all';
my $disable_empty = 0;
if ( $opt{'agent_null_right'} ) {
if ( $curuser->access_right($opt{'agent_null_right'}) ) {
my $disable_empty = 0;
if ( $opt{'agent_null_right'} ) {
if ( $curuser->access_right($opt{'agent_null_right'}) ) {