Skip to content

Commit

Permalink
Fix extending some top level props getkirby#4014
Browse files Browse the repository at this point in the history
  • Loading branch information
afbora committed Mar 22, 2022
1 parent 2764a20 commit c50a387
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/Cms/PageBlueprint.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function __construct(array $props)

// normalize all available page options
$this->props['options'] = $this->normalizeOptions(
$props['options'] ?? true,
$this->props['options'] ?? true,
// defaults
[
'changeSlug' => null,
Expand All @@ -50,10 +50,10 @@ public function __construct(array $props)
);

// normalize the ordering number
$this->props['num'] = $this->normalizeNum($props['num'] ?? 'default');
$this->props['num'] = $this->normalizeNum($this->props['num'] ?? 'default');

// normalize the available status array
$this->props['status'] = $this->normalizeStatus($props['status'] ?? null);
$this->props['status'] = $this->normalizeStatus($this->props['status'] ?? null);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Cms/SiteBlueprint.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function __construct(array $props)

// normalize all available page options
$this->props['options'] = $this->normalizeOptions(
$props['options'] ?? true,
$this->props['options'] ?? true,
// defaults
[
'changeTitle' => null,
Expand Down
2 changes: 1 addition & 1 deletion src/Cms/UserBlueprint.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function __construct(array $props)

// normalize all available page options
$this->props['options'] = $this->normalizeOptions(
$props['options'] ?? true,
$this->props['options'] ?? true,
// defaults
[
'create' => null,
Expand Down

0 comments on commit c50a387

Please sign in to comment.