Skip to content

Commit

Permalink
Merge branch hotfix/v2.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
roadiz-ci committed May 22, 2024
1 parent ef3f319 commit 0ef1724
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config/services.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
parameters:
roadiz_core.cms_version: '2.3.0'
roadiz_core.cms_version: '2.3.1'
roadiz_core.cms_version_prefix: 'main'
env(APP_NAMESPACE): "roadiz"
env(APP_VERSION): "0.1.0"
Expand Down
5 changes: 3 additions & 2 deletions src/Node/NodeFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,10 @@ public function create(
$node->setNodeType($type);
}

if ($type instanceof NodeType) {
$node->setTtl($type->getDefaultTtl());
if ($node->getNodeType() instanceof NodeType) {
$node->setTtl($node->getNodeType()->getDefaultTtl());
}

if (null !== $parent) {
$node->setParent($parent);
}
Expand Down

0 comments on commit 0ef1724

Please sign in to comment.