]> git.decadent.org.uk Git - maypole.git/commitdiff
This gets delete working, although it involves diamond inheritance.
authorSimon Cozens <simon@simon-cozens.org>
Sat, 31 Jan 2004 13:27:10 +0000 (13:27 +0000)
committerSimon Cozens <simon@simon-cozens.org>
Sat, 31 Jan 2004 13:27:10 +0000 (13:27 +0000)
git-svn-id: http://svn.maypole.perl.org/Maypole/trunk@21 48953598-375a-da11-a14b-00016c27c3ee

lib/Apache/MVC/Model/CDBI.pm

index 8e0b9812bd1763cd1ddb5ed3e8f373a2f06a2866..88ba3da1334cd3383057cb69345f214614d5447a 100644 (file)
@@ -1,5 +1,5 @@
 package Apache::MVC::Model::CDBI;
-use base 'Apache::MVC::Model::Base';
+use base qw(Apache::MVC::Model::Base Class::DBI);
 use Class::DBI::AsForm;
 use Class::DBI::FromCGI;
 use CGI::Untaint;
@@ -38,7 +38,7 @@ sub do_edit :Exported {
 
 sub delete :Exported {
     my ($self, $r) = @_;
-    $self->delete for @{ $r->objects };
+    $_->SUPER::delete for @{ $r->objects };
     $r->objects([ $self->retrieve_all ]);
     $r->{template} = "list";
 }