In a properties block, "defaultValue" does nothing. We want "default".
This commit is contained in:
parent
580c6bf6f7
commit
7b11f97aec
1 changed files with 3 additions and 2 deletions
|
|
@ -27,7 +27,7 @@ define tableName => 'Shelf';
|
||||||
|
|
||||||
property templateId => (
|
property templateId => (
|
||||||
fieldType => "template",
|
fieldType => "template",
|
||||||
defaultValue => 'nFen0xjkZn8WkpM93C9ceQ',
|
default => 'nFen0xjkZn8WkpM93C9ceQ',
|
||||||
tab => "display",
|
tab => "display",
|
||||||
namespace => "Shelf",
|
namespace => "Shelf",
|
||||||
hoverHelp => ['shelf template help', 'Asset_Shelf'],
|
hoverHelp => ['shelf template help', 'Asset_Shelf'],
|
||||||
|
|
@ -238,7 +238,8 @@ See WebGUI::Asset::prepareView() for details.
|
||||||
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);
|
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) {
|
if (!$template) {
|
||||||
WebGUI::Error::ObjectNotFound::Template->throw(
|
WebGUI::Error::ObjectNotFound::Template->throw(
|
||||||
error => qq{Template not found},
|
error => qq{Template not found},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue