fix 11771 Default newsletter template not set
Pro tip: Never do what I just did. Ever. 8 removes the need for it.
This commit is contained in:
parent
711f8d6bfa
commit
0ed496a875
2 changed files with 11 additions and 1 deletions
|
|
@ -9,6 +9,7 @@
|
|||
- fixed #11769: WebGUI::Asset::File::ZipArchive specifies a default template of ''
|
||||
- fixed #11758: formatting on account stuff is wrong
|
||||
- fixed #11770: Starter needs to set all account plugins
|
||||
- fixed #11771: Default Newsletter template not set
|
||||
|
||||
7.9.10
|
||||
- fixed #11721: spamStopWords not in WebGUI.conf.original
|
||||
|
|
|
|||
|
|
@ -92,7 +92,16 @@ sub definition {
|
|||
className=>'WebGUI::Asset::Wobject::Collaboration::Newsletter',
|
||||
properties=>\%properties
|
||||
});
|
||||
return $class->SUPER::definition($session, $definition);
|
||||
$class->SUPER::definition($session, $definition);
|
||||
|
||||
# Change the default Collaboration template
|
||||
for my $def ( @$definition ) {
|
||||
if ( exists $def->{properties}->{collaborationTemplateId} ) {
|
||||
$def->{properties}->{collaborationTemplateId}->{defaultValue} = 'newslettercs0000000001';
|
||||
}
|
||||
}
|
||||
|
||||
return $definition;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue