X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=lib%2FMaypole%2FModel%2FBase.pm;h=a9b3a32a7b9b57ccb6d13f652db6175a1b94fc48;hb=cede90d898b66d4b12587e4993e591079a9d4b0d;hp=30dacfe60015ad8227a4370fb1d5dff180c38242;hpb=95bf5085c964e0fdf2e1fdbfae14ea745de6a5fc;p=maypole.git diff --git a/lib/Maypole/Model/Base.pm b/lib/Maypole/Model/Base.pm index 30dacfe..a9b3a32 100644 --- a/lib/Maypole/Model/Base.pm +++ b/lib/Maypole/Model/Base.pm @@ -12,6 +12,7 @@ sub process { return if $r->{template}; # Authentication has set this, we're done. $r->{template} = $method; + $r->objects([]); my $obj = $class->retrieve( $r->{args}->[0] ); if ($obj) { $r->objects([ $obj ]);