From 186fe98bb1a89a6e9ce4577825d22dd17d3758c6 Mon Sep 17 00:00:00 2001 From: Porraphit Chuasuk Date: Fri, 7 Jun 2024 02:10:13 +0700 Subject: [PATCH] Fixed cannot save Category/Custom Design on store level --- app/code/core/Mage/Catalog/Model/Resource/Abstract.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/code/core/Mage/Catalog/Model/Resource/Abstract.php b/app/code/core/Mage/Catalog/Model/Resource/Abstract.php index 504ad543b1e..5c24628e8b7 100644 --- a/app/code/core/Mage/Catalog/Model/Resource/Abstract.php +++ b/app/code/core/Mage/Catalog/Model/Resource/Abstract.php @@ -116,7 +116,8 @@ protected function _getLoadAttributesSelect($object, $table) $select = $this->_getReadAdapter()->select() ->from(['attr_table' => $table], []) ->where("attr_table.{$this->getEntityIdField()} = ?", $object->getId()) - ->where('attr_table.store_id IN (?)', $storeIds); + ->where('attr_table.store_id IN (?)', $storeIds) + ->order('attr_table.store_id ASC'); if (count($storeIds) > 1) { $select->order('attr_table.store_id ASC'); }