Skip to content

Commit

Permalink
Merge branch 'release/4.4.6.1' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonkelly committed Apr 4, 2023
2 parents 81bc48f + 6b1c683 commit 33aa044
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
@@ -1,5 +1,9 @@
# Release Notes for Craft CMS 4

## 4.4.6.1 - 2023-04-04

- Fixed a bug where Categories fields weren’t retaining custom sort orders when “Maintain hierarchy” was disabled. ([#10560](https://github.com/craftcms/cms/discussions/10560))

## 4.4.6 - 2023-04-04

- Content tab menus now reveal when a tab contains validation errors, and invalid tabs’ menu options get the same warning icon treatment as inline tabs do. ([#12971](https://github.com/craftcms/cms/issues/12971))
Expand Down
2 changes: 1 addition & 1 deletion src/config/app.php
Expand Up @@ -3,7 +3,7 @@
return [
'id' => 'CraftCMS',
'name' => 'Craft CMS',
'version' => '4.4.6',
'version' => '4.4.6.1',
'schemaVersion' => '4.4.0.4',
'minVersionRequired' => '3.7.11',
'basePath' => dirname(__DIR__), // Defines the @app alias
Expand Down
2 changes: 1 addition & 1 deletion src/controllers/RebrandController.php
Expand Up @@ -102,7 +102,7 @@ public function actionDeleteSiteImage(): ?Response
$type = $this->request->getRequiredBodyParam('type');

if (!in_array($type, $this->_allowedTypes, true)) {
$this->asFailure(Craft::t('app', 'That is not an allowed image type.'));
return $this->asFailure(Craft::t('app', 'That is not an allowed image type.'));
}

FileHelper::clearDirectory(Craft::$app->getPath()->getRebrandPath() . '/' . $type);
Expand Down
2 changes: 1 addition & 1 deletion src/fields/Categories.php
Expand Up @@ -90,7 +90,7 @@ public function __construct(array $config = [])
*/
public function normalizeValue(mixed $value, ?ElementInterface $element = null): mixed
{
if (is_array($value)) {
if (is_array($value) && $this->maintainHierarchy) {
/** @var Category[] $categories */
$categories = Category::find()
->siteId($this->targetSiteId($element))
Expand Down

0 comments on commit 33aa044

Please sign in to comment.