freeside/FS/FS/UI Web.pm,1.4,1.5
ivan
ivan at pouncequick.420.am
Thu Feb 24 06:22:06 PST 2005
Update of /home/cvs/cvsroot/freeside/FS/FS/UI
In directory pouncequick:/tmp/cvs-serv22292/FS/FS/UI
Modified Files:
Web.pm
Log Message:
add progressbar to service definition add - duplicate checking can take a while, closes: Bug#1126
Index: Web.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/UI/Web.pm,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- Web.pm 20 Feb 2005 08:51:04 -0000 1.4
+++ Web.pm 24 Feb 2005 14:22:02 -0000 1.5
@@ -36,9 +36,27 @@
sub start_job {
my $self = shift;
- my %param = @_;
+ warn "FS::UI::Web::start_job: ". join(', ', @_) if $DEBUG;
+# my %param = @_;
+ my %param = ();
+ while ( @_ ) {
+ my( $field, $value ) = splice(@_, 0, 2);
+ unless ( exists( $param{$field} ) ) {
+ $param{$field} = $value;
+ } elsif ( ! ref($param{$field}) ) {
+ $param{$field} = [ $param{$field}, $value ];
+ } else {
+ push @{$param{$field}}, $value;
+ }
+ }
warn "FS::UI::Web::start_job\n".
- join('', map " $_ => $param{$_}\n", keys %param )
+ join('', map {
+ if ( ref($param{$_}) ) {
+ " $_ => [ ". join(', ', @{$param{$_}}). " ]\n";
+ } else {
+ " $_ => $param{$_}\n";
+ }
+ } keys %param )
if $DEBUG;
#first get the CGI params shipped off to a job ASAP so an id can be returned
More information about the freeside-commits
mailing list