Skip to content

Commit

Permalink
Merge branch 'main' into next
Browse files Browse the repository at this point in the history
  • Loading branch information
fballiano committed May 12, 2023
2 parents 27ae828 + 4da40b1 commit fe3980a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
3 changes: 3 additions & 0 deletions app/code/core/Mage/Catalog/Model/Resource/Abstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,9 @@ protected function _getLoadAttributesSelect($object, $table)
->from(['attr_table' => $table], [])
->where("attr_table.{$this->getEntityIdField()} = ?", $object->getId())
->where('attr_table.store_id IN (?)', $storeIds);
if (count($storeIds) > 1) {
$select->order('attr_table.store_id ASC');
}
if ($setId) {
$select->join(
['set_table' => $this->getTable('eav/entity_attribute')],
Expand Down
2 changes: 2 additions & 0 deletions app/code/core/Mage/Eav/Model/Entity/Attribute/Abstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,8 @@ public function loadByCode($entityType, $code)
$this->_getResource()->loadByCode($this, $entityTypeId, $code);
}
$this->_afterLoad();
$this->setOrigData();
$this->_hasDataChanges = false;
Varien_Profiler::stop('_LOAD_ATTRIBUTE_BY_CODE__');
return $this;
}
Expand Down
5 changes: 0 additions & 5 deletions lib/Varien/Image/Adapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ class Varien_Image_Adapter
public const ADAPTER_GD = 'GD';
public const ADAPTER_GD2 = 'GD2';
public const ADAPTER_IM = 'IMAGEMAGIC';
public const ADAPTER_IME = 'IMAGEMAGIC_EXTERNAL';

public static function factory($adapter)
{
Expand All @@ -35,10 +34,6 @@ public static function factory($adapter)
return new Varien_Image_Adapter_Imagemagic();
break;

case self::ADAPTER_IME:
return new Varien_Image_Adapter_ImagemagicExternal();
break;

default:
throw new Exception('Invalid adapter selected.');
break;
Expand Down

0 comments on commit fe3980a

Please sign in to comment.