Remove all unnecessary usage of SUPER from Assets
This commit is contained in:
parent
c2baef0bde
commit
5f9f1e6dec
46 changed files with 175 additions and 171 deletions
|
|
@ -1578,12 +1578,12 @@ been inserted into the AssetIndex.
|
|||
|
||||
=cut
|
||||
|
||||
sub indexContent {
|
||||
override indexContent => sub {
|
||||
my ($self) = @_;
|
||||
my $session = $self->session;
|
||||
$self->SUPER::indexContent();
|
||||
super();
|
||||
$self->reindexThings;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
|
@ -1696,9 +1696,9 @@ See WebGUI::Asset::prepareView() for details.
|
|||
|
||||
=cut
|
||||
|
||||
sub prepareView {
|
||||
override prepareView => sub {
|
||||
my $self = shift;
|
||||
$self->SUPER::prepareView();
|
||||
super();
|
||||
my $template = WebGUI::Asset::Template->newById($self->session, $self->templateId);
|
||||
if (!$template) {
|
||||
WebGUI::Error::ObjectNotFound::Template->throw(
|
||||
|
|
@ -1710,7 +1710,7 @@ sub prepareView {
|
|||
$template->prepare($self->getMetaDataAsTemplateVariables);
|
||||
$self->{_viewTemplate} = $template;
|
||||
return undef;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue