WebGUI/Asset/Wobject/Navigation.pm was still using obsolete template PBtmpl0000000000000048

Fixes #11765
This commit is contained in:
Scott Walters 2010-08-04 23:02:37 -04:00
parent 6df47033dd
commit 7a56c72586

View file

@ -30,7 +30,7 @@ property templateId => (
hoverHelp => ['1096 description', 'Asset_Navigation'], hoverHelp => ['1096 description', 'Asset_Navigation'],
tab => 'display', tab => 'display',
fieldType => "template", fieldType => "template",
default => 'PBtmpl0000000000000048', default => 'PBnav00000000000bullet',
namespace => 'Navigation', namespace => 'Navigation',
); );
property mimeType => ( property mimeType => (
@ -357,7 +357,7 @@ Extend the superclass to add metadata and to preprocess the template.
sub prepareView { sub prepareView {
my $self = shift; my $self = shift;
$self->SUPER::prepareView(); $self->SUPER::prepareView();
my $template = WebGUI::Asset::Template->newById($self->session, $self->templateId); my $template = WebGUI::Asset::Template->newById($self->session, $self->templateId); # part of Couldn't lookup className (param: PBtmpl0000000000000048)
if (!$template) { if (!$template) {
WebGUI::Error::ObjectNotFound::Template->throw( WebGUI::Error::ObjectNotFound::Template->throw(
error => qq{Template not found}, error => qq{Template not found},