Skip to content

Commit

Permalink
Fix error thrown when not setting 'Propagate nodes'
Browse files Browse the repository at this point in the history
  • Loading branch information
engram-design committed Aug 27, 2018
1 parent e14a04c commit 0dfeb84
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/services/Navs.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,10 @@ public function saveNav(NavModel $nav, bool $runValidation = true): bool
$navRecord->handle = $nav->handle;
$navRecord->propagateNodes = $nav->propagateNodes;

if (!$nav->propagateNodes) {
$navRecord->propagateNodes = false;
}

$db = Craft::$app->getDb();
$transaction = $db->beginTransaction();

Expand Down

0 comments on commit 0dfeb84

Please sign in to comment.