From 2a6aa24137ddd389c1e644f5ece325c5b5dbaf3a Mon Sep 17 00:00:00 2001 From: ivan Date: Tue, 25 Dec 2007 23:49:23 +0000 Subject: ho ho ho, merry XSSmas --- httemplate/edit/part_pkg.cgi | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) (limited to 'httemplate/edit/part_pkg.cgi') diff --git a/httemplate/edit/part_pkg.cgi b/httemplate/edit/part_pkg.cgi index 2837e47e7..a337d2272 100755 --- a/httemplate/edit/part_pkg.cgi +++ b/httemplate/edit/part_pkg.cgi @@ -4,9 +4,7 @@ )) %> % #), ' onLoad="visualize()"'); -% if ( $cgi->param('error') ) { - Error: <% $cgi->param('error') %> -% } +<% include('/elements/error.html') %>
@@ -180,10 +178,18 @@ Line-item revenue recognition % } % % push @fixups, "pkg_svc$svcpart"; +% +% my $quan = 0; +% if ( $cgi->param("pkg_svc$svcpart") =~ /^\s*(\d+)\s*$/ ) { +% $quan = $1; +% } elsif ( $pkg_svc->quantity ) { +% $quan = $pkg_svc->quantity; +% } + - quantity || 0 %>"> + @@ -207,10 +213,9 @@ Line-item revenue recognition -% foreach my $f ( qw( clone pkgnum ) ) { - - -% } +% foreach my $f ( qw( clone pkgnum ) ) { #safe, these were untained in %init + +% } % -- cgit v1.2.1