map {to_PL($_)}
grep { exists $r->{config}{ok_tables}{$_} }
map {$_->table}
- keys %{shift->__hasa_list}
+ keys %{shift->__hasa_list || {}}
}
sub do_edit :Exported {
my ($self, $r) = @_;
my $h = CGI::Untaint->new(%{$r->{params}});
- my ($obj) = @{$self->objects};
+ my ($obj) = @{$r->objects};
if ($obj) {
# We have something to edit
$obj->update_from_cgi($h);