Commit b0e34101 authored by Ivan Chepurnyi's avatar Ivan Chepurnyi

+ Added source attributes support.

parent afb952cc
......@@ -356,6 +356,10 @@ abstract class EcomDev_PHPUnit_Model_Mysql4_Fixture_Eav_Abstract extends EcomDev
$value = null;
}
if ($attribute->usesSource() && $value !== null) {
$value = $attribute->getSource()->getOptionId($value);
}
return $value;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment