Fix the WikiPage title auto fill-in by using a Moose builder method that can be overridden by child classes.

This commit is contained in:
Colin Kuskie 2011-11-24 10:31:10 -08:00
parent ce15690523
commit e4de128f76
2 changed files with 15 additions and 1 deletions

View file

@ -33,8 +33,14 @@ property title => (
label => ['99','Asset'],
hoverHelp => ['99 description','Asset'],
fieldType => 'text',
default => 'Untitled',
builder => '_default_title',
lazy => 1,
);
sub _default_title {
return 'Untitled';
}
around title => sub {
my $orig = shift;
my $self = shift;