Fix broken templateId in Session/Style/process when useEmptyStyle was

requested.  It used to be 6, but at somepoint in the 6.x cycle it
was changed to be PBtmpl0000000000000132 in the database.

Added tests that verify that it works correctly.
This commit is contained in:
Colin Kuskie 2006-10-11 00:32:42 +00:00
parent 6cf1afc6a7
commit b1bb5d0b58
3 changed files with 9 additions and 3 deletions

View file

@ -159,7 +159,7 @@ sub process {
} elsif ($self->session->scratch->get("personalStyleId") ne "") {
$templateId = $self->session->scratch->get("personalStyleId");
} elsif ($self->{_useEmptyStyle}) {
$templateId = 6;
$templateId = 'PBtmpl0000000000000132';
}
$var{'head.tags'} = '
<meta name="generator" content="WebGUI '.$WebGUI::VERSION.'" />