diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index 72d9cbb81..456297d91 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -14,6 +14,7 @@ - fixed #10077: after matrix sort can't return to alphanumeric sort - fixed #10138: Matrix 2.0 Links in Product Listing are broken - fixed #10163: User List - alphabet search field broken + - fixed #9039: Synopsis not output as a meta field 7.7.3 - fixed #10094: double explanation in thread help diff --git a/lib/WebGUI/Asset.pm b/lib/WebGUI/Asset.pm index c04b366bf..0c18fd371 100644 --- a/lib/WebGUI/Asset.pm +++ b/lib/WebGUI/Asset.pm @@ -2165,7 +2165,15 @@ The content to wrap up. sub processStyle { my ($self, $output) = @_; - $self->session->style->setRawHeadTags($self->getExtraHeadTags); + my $session = $self->session; + my $style = $session->style; + $style->setRawHeadTags($self->getExtraHeadTags); + if ($self->get('synopsis')) { + $style->setMeta({ + name => 'Description', + content => $self->get('synopsis'), + }); + } return $output; } @@ -2739,12 +2747,6 @@ sub www_view { return $check if (defined $check); # if all else fails - if ($self->get('synopsis')) { - $self->session->style->setMeta({ - name => 'Description', - content => $self->get('synopsis'), - }); - } $self->prepareView; $self->session->output->print($self->view); return undef; diff --git a/lib/WebGUI/Asset/Wobject.pm b/lib/WebGUI/Asset/Wobject.pm index 54871e1e3..8bb97cd8f 100644 --- a/lib/WebGUI/Asset/Wobject.pm +++ b/lib/WebGUI/Asset/Wobject.pm @@ -380,10 +380,17 @@ An HTML blob to be parsed into the current style. =cut sub processStyle { - my $self = shift; - my $output = shift; - $self->session->style->setRawHeadTags($self->getExtraHeadTags); - return $self->session->style->process($output,$self->get("styleTemplateId")); + my ($self, $output) = @_; + my $session = $self->session; + my $style = $session->style; + $style->setRawHeadTags($self->getExtraHeadTags); + if ($self->get('synopsis')) { + $style->setMeta({ + name => 'Description', + content => $self->get('synopsis'), + }); + } + return $style->process($output,$self->get("styleTemplateId")); }