Skip to content

Commit

Permalink
Fixed #11973
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonkelly committed Sep 20, 2022
1 parent 4f16229 commit 13cc01f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
- Fixed a bug where invalid entries could be duplicated via the “Save as a new entry” action, despite the duplication appearing to have failed with validation errors. ([#11959](https://github.com/craftcms/cms/issues/11959))
- Fixed a PHP error that could occur in a potential race condition when calling `craft\helpers\FileHelper::clearDirectory()`.
- Fixed a bug where Structure section entries that were duplicated via the “Save as a new entry” action on a provisional draft weren’t being placed within the structure properly.
- Fixed a bug where element’s `searchScore` properties would be set to `null` when their original score was below 1, rather than rounding to 0 or 1. ([#11973](https://github.com/craftcms/cms/issues/11973))

## 3.7.54 - 2022-09-13

Expand Down
2 changes: 1 addition & 1 deletion src/base/Element.php
Original file line number Diff line number Diff line change
Expand Up @@ -1834,7 +1834,7 @@ public function init()
$this->lft = (int)$this->lft ?: null;
$this->rgt = (int)$this->rgt ?: null;
$this->level = (int)$this->level ?: null;
$this->searchScore = (int)$this->searchScore ?: null;
$this->searchScore = $this->searchScore ? ((int)round($this->searchScore)) : null;
$this->trashed = (bool)$this->trashed;

parent::init();
Expand Down

0 comments on commit 13cc01f

Please sign in to comment.