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 )
added search_columns method to base cdbi model class, provides display_columns unless over-ridden
+ fix to display_line macro in factory templates (bug 22920)
2.11 Mon 31 July 2006
}
my $path = $self->ar->uri;
- my $loc = $self->ar->location;
+ my $base = URI->new($self->config->uri_base);
+ my $loc = $base->path;
{
no warnings 'uninitialized';
our $error_template;
{ local $/; $error_template = <DATA>; }
-our $VERSION = '2.11';
+our $VERSION = '2.12';
use strict;
my ( $self, $r ) = @_;
unless ($self->{tt}) {
my $view_options = $r->config->view_options || {};
+ if ($r->debug) {
+ $view_options->{DEBUG} = 'undef';
+ }
$self->{provider} = Template::Provider->new($view_options);
$self->{tt} = Template->new({
%$view_options,
SET additional =
additional _ "&" _ name _ "=" _
request.params.$name;
- SET action = "search";
+ SET action = "do_search";
END;
END;
USE model_obj = Class request.model_class;
ELSIF col == classmetadata.stringify_column;
maybe_link_view(item);
ELSIF col_obj; # its a real column
- accessor = item.accessor_name_for(col_obj) ||
- item.accessor_name(col_obj); # deprecated in cdbi
+ accessor = item.accessor_name_for(col_obj) || item.accessor_name(col_obj); # deprecated in cdbi
maybe_link_view(item.$accessor);
ELSE;
item.$col;
<!-- ### Search component ### -->
<div id="search">
-<form method="get" action="[% base %]/[% classmetadata.moniker %]/search/">
+<form method="get" action="[% base %]/[% classmetadata.moniker %]/do_search/">
<fieldset>
<legend>Search</legend>
[% USE search_class = Class request.model_class; %]