From: Simon Cozens Date: Sat, 13 Mar 2004 13:32:51 +0000 (+0000) Subject: Remove some debugging crud. X-Git-Tag: 2.10~277 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=6ff5b7a2c092e585299110ec243a4f839c9c5cec;p=maypole.git Remove some debugging crud. git-svn-id: http://svn.maypole.perl.org/Maypole/trunk@85 48953598-375a-da11-a14b-00016c27c3ee --- diff --git a/lib/Maypole/Model/CDBI.pm b/lib/Maypole/Model/CDBI.pm index bb72f59..b2a79b4 100644 --- a/lib/Maypole/Model/CDBI.pm +++ b/lib/Maypole/Model/CDBI.pm @@ -39,13 +39,11 @@ sub do_edit :Exported { if ($obj) { # We have something to edit $obj->update_from_cgi($h); - warn "Updating an object ($obj) with ".Dumper($h); use Data::Dumper; } else { $obj = $self->create_from_cgi($h); } if (my %errors = $obj->cgi_update_errors) { # Set it up as it was: - warn "There were errors: ".Dumper(\%errors)."\n"; $r->{template_args}{cgi_params} = $r->{params}; $r->{template_args}{errors} = \%errors; $r->{template} = "edit"; @@ -77,7 +75,6 @@ sub search :Exported { my ($self, $r) = @_; my %fields = map {$_ => 1 } $self->columns; my $oper = "like"; # For now - use Carp; Carp::confess("Urgh") unless ref $r; my %params = %{$r->{params}}; my %values = map { $_ => {$oper, $params{$_} } } grep { $params{$_} and $fields{$_} } keys %params;