From 6b0408fce476a738b7008bd3a4b99921fef2ee80 Mon Sep 17 00:00:00 2001 From: Sven Reichel Date: Wed, 18 Jan 2023 10:39:15 +0100 Subject: [PATCH] Sorted themes/packages dropdown in ascending order (#2967) --- app/code/core/Mage/Core/Model/Design/Source/Design.php | 3 +++ phpstan.dist.baseline.neon | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/app/code/core/Mage/Core/Model/Design/Source/Design.php b/app/code/core/Mage/Core/Model/Design/Source/Design.php index dc2fc87b6b8..91fffafb2ec 100644 --- a/app/code/core/Mage/Core/Model/Design/Source/Design.php +++ b/app/code/core/Mage/Core/Model/Design/Source/Design.php @@ -71,12 +71,15 @@ public function getAllOptions($withEmpty = true) 'value' => $package . '/' . $theme ]; } + asort($themeOptions); $packageOption['value'] = $themeOptions; $options[] = $packageOption; } $this->_options = $options; } $options = $this->_options; + asort($options); + if ($withEmpty) { array_unshift($options, [ 'value' => '', diff --git a/phpstan.dist.baseline.neon b/phpstan.dist.baseline.neon index 2977dfce80b..ac73a2d59b9 100644 --- a/phpstan.dist.baseline.neon +++ b/phpstan.dist.baseline.neon @@ -6710,6 +6710,11 @@ parameters: count: 1 path: app/code/core/Mage/Shipping/Model/Tracking/Result.php + - + message: "#^Call to an undefined method Zend_Db_Adapter_Abstract\\:\\:getCheckSql\\(\\)\\.$#" + count: 1 + path: app/code/core/Mage/Sitemap/Model/Resource/Catalog/Abstract.php + - message: "#^Method Mage_Tag_Model_Resource_Tag_Collection\\:\\:addPopularity\\(\\) invoked with 2 parameters, 0\\-1 required\\.$#" count: 1