From 7b11f97aec8b8cc4eec014cab7709b9fbd215cb2 Mon Sep 17 00:00:00 2001 From: Scott Walters Date: Wed, 11 Aug 2010 14:02:14 -0400 Subject: [PATCH] In a properties block, "defaultValue" does nothing. We want "default". --- lib/WebGUI/Asset/Wobject/Shelf.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/WebGUI/Asset/Wobject/Shelf.pm b/lib/WebGUI/Asset/Wobject/Shelf.pm index 83a7c9286..128ec3a46 100644 --- a/lib/WebGUI/Asset/Wobject/Shelf.pm +++ b/lib/WebGUI/Asset/Wobject/Shelf.pm @@ -27,7 +27,7 @@ define tableName => 'Shelf'; property templateId => ( fieldType => "template", - defaultValue => 'nFen0xjkZn8WkpM93C9ceQ', + default => 'nFen0xjkZn8WkpM93C9ceQ', tab => "display", namespace => "Shelf", hoverHelp => ['shelf template help', 'Asset_Shelf'], @@ -238,7 +238,8 @@ See WebGUI::Asset::prepareView() for details. sub prepareView { my $self = shift; $self->SUPER::prepareView(); - my $template = WebGUI::Asset::Template->newById($self->session, $self->templateId); +warn "Shelf: going to do prepareView on template with id: " . $self->templateId . " and we are: " . $self->getId; + my $template = WebGUI::Asset::Template->newById($self->session, $self->templateId); # boom XXX if (!$template) { WebGUI::Error::ObjectNotFound::Template->throw( error => qq{Template not found},