Skip to content

Commit

Permalink
Sorted themes/packages dropdown in ascending order (#2967)
Browse files Browse the repository at this point in the history
  • Loading branch information
sreichel authored Jan 18, 2023
1 parent b1a6176 commit 6b0408f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/code/core/Mage/Core/Model/Design/Source/Design.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' => '',
Expand Down
5 changes: 5 additions & 0 deletions phpstan.dist.baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6b0408f

Please sign in to comment.