fix to path handling in mod_perl and CGI when location ends in /
fixed template path ordering so i.e. /tablename/list is used before /list when provided with a tablename
fixed template path with array refs
+ fix to template being reset from path in plain templates (i.e. where no model), may affect those relying on the bug ( bug 23722 )
2.11 Mon 31 July 2006
# It's just a plain template
$self->model_class(undef);
- # FIXME: this is likely to be redundant and is definately causing problems.
-
- my $path = $self->path;
- $path =~ s{/$}{}; # De-absolutify
- $self->path($path);
-
- $self->template($self->path);
+ unless ($self->template) {
+ # FIXME: this is likely to be redundant and is definately causing problems.
+ my $path = $self->path;
+ $path =~ s{/$}{}; # De-absolutify
+ $self->path($path);
+ $self->template($self->path);
+ }
}
# The model has been processed or skipped (if is_applicable returned false),
for my $object (@$items) {
my $stringify = $args->{stringify};
if ($object->can('stringify_column') ) {
- $stringify ||= $object->stringify_column if ($object->can($object->stringify_column));
+ $stringify ||= $object->stringify_column if ($object->stringify_column && $object->can($object->stringify_column));
}
my $id = $object->id;
my $opt = HTML::Element->new("option", value => $id);