Skip to content

Instantly share code, notes, and snippets.

@drobinson
Created August 4, 2015 15:32
Show Gist options
  • Save drobinson/16dbdc7873bb9a366f99 to your computer and use it in GitHub Desktop.
Save drobinson/16dbdc7873bb9a366f99 to your computer and use it in GitHub Desktop.
--- a/app/code/core/Mage/Eav/Model/Resource/Entity/Attribute/Option/Collection.php
+++ b/app/code/core/Mage/Eav/Model/Resource/Entity/Attribute/Option/Collection.php
@@ -114,7 +114,7 @@ class Mage_Eav_Model_Resource_Entity_Attribute_Option_Collection extends Mage_Co
*/
public function setIdFilter($optionId)
{
- return $this->addFieldToFilter('option_id', array('in' => $optionId));
+ return $this->addFieldToFilter('main_table.option_id', array('in' => $optionId));
}
/**
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment