additional, request_options and view_options attributes of Maypole::Config are initialised with hashref
do_delete action now has exported attribute in ::Model::CDBI::Base
Fixed links in flox to cookbook (bug 22899)
+ Applied change from bug 14565
2.12 22 June 2007
# We run additional_data for every request
$self->additional_data;
+ # process request with model if applicable and template not set.
if ($applicable) {
- eval { $self->model_class->process($self) };
- if ( my $error = $@ ) {
- $status = $self->call_exception($error, "model");
- if ( $status != OK ) {
- $self->warn("caught model error: $error");
- return $self->debug ?
- $self->view_object->error($self, $error) : ERROR;
+ unless ($r->{template}) {
+ eval { $self->model_class->process($self) };
+ if ( my $error = $@ ) {
+ $status = $self->call_exception($error, "model");
+ if ( $status != OK ) {
+ $self->warn("caught model error: $error");
+ return $self->debug ?
+ $self->view_object->error($self, $error) : ERROR;
+ }
}
}
} else {
sub process {
my ( $class, $r ) = @_;
my $method = $r->action;
- return if $r->{template}; # Authentication has set this, we're done.
$r->{template} = $method;
my $obj = $class->fetch_objects($r);