summaryrefslogtreecommitdiff
path: root/httemplate
diff options
context:
space:
mode:
Diffstat (limited to 'httemplate')
-rw-r--r--httemplate/misc/cdr-import.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/httemplate/misc/cdr-import.html b/httemplate/misc/cdr-import.html
index a71b25b67..b46607869 100644
--- a/httemplate/misc/cdr-import.html
+++ b/httemplate/misc/cdr-import.html
@@ -3,8 +3,8 @@
Import a CSV file containing Call Detail Records (CDRs).<BR><BR>
CDR Format:
<SELECT NAME="format">
-% foreach $format ( keys %formats ) {
- <OPTION VALUE="<% $format %>"><% $format{$format} %></OPTION>
+% foreach my $format ( keys %formats ) {
+ <OPTION VALUE="<% $format %>"><% $formats{$format} %></OPTION>
% }
</SELECT>
<BR><BR>
@@ -21,6 +21,6 @@ Filename: <INPUT TYPE="file" NAME="csvfile"><BR><BR>
die "access denied"
unless $FS::CurrentUser::CurrentUser->access_right('Import');
-tie my %formats, FS::cdr->import_formats;
+tie my %formats, 'Tie::IxHash', FS::cdr->import_formats;
</%init>