Skip to content

Commit

Permalink
Pass augmented values into report. Intentionally check for false usin…
Browse files Browse the repository at this point in the history
…g the non-augmented version.
  • Loading branch information
jasonvarga committed Aug 15, 2020
1 parent f3665c8 commit 240d28a
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/Reporting/Report.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,16 +115,14 @@ protected function pagesFromContent()
{
return $this->allContent()
->map(function ($content) {
$cascade = $content->value('seo');

if ($cascade === false) {
if ($content->value('seo') === false) {
return;
}

$data = (new Cascade)
->with(SiteDefaults::load()->all())
->with(SiteDefaults::load()->augmented())
->with($this->getAugmentedSectionDefaults($content))
->with($cascade ?: [])
->with($content->augmentedValue('seo'))
->withCurrent($content)
->get();

Expand Down

0 comments on commit 240d28a

Please sign in to comment.