@@ -220,11 +220,11 @@ |
||
| 220 | 220 | public static function getValueTypeList() |
| 221 | 221 | { |
| 222 | 222 | return array( |
| 223 | - 'int' => 'int', |
|
| 224 | - 'string' => 'string', |
|
| 225 | - 'color' => 'color', |
|
| 226 | - 'size' => 'size', |
|
| 227 | - 'designer' => 'designer', |
|
| 223 | + 'int' => 'int', |
|
| 224 | + 'string' => 'string', |
|
| 225 | + 'color' => 'color', |
|
| 226 | + 'size' => 'size', |
|
| 227 | + 'designer' => 'designer', |
|
| 228 | 228 | ); |
| 229 | 229 | } |
| 230 | 230 | |
@@ -25,10 +25,10 @@ discard block |
||
| 25 | 25 | - en_GB |
| 26 | 26 | HELP; |
| 27 | 27 | $this->setName('eav:attribute:create-dummy-values')->addArgument('locale', InputArgument::OPTIONAL, 'Locale') |
| 28 | - ->addArgument('attribute-id', InputArgument::OPTIONAL, 'Attribute ID to add values') |
|
| 29 | - ->addArgument('values-type', InputArgument::OPTIONAL, 'Types of Values to create (default int)') |
|
| 30 | - ->addArgument('values-number', InputArgument::OPTIONAL, 'Number of Values to create (default 1)') |
|
| 31 | - ->setDescription('Create a dummy values for dropdown attributes')->setHelp($help); |
|
| 28 | + ->addArgument('attribute-id', InputArgument::OPTIONAL, 'Attribute ID to add values') |
|
| 29 | + ->addArgument('values-type', InputArgument::OPTIONAL, 'Types of Values to create (default int)') |
|
| 30 | + ->addArgument('values-number', InputArgument::OPTIONAL, 'Number of Values to create (default 1)') |
|
| 31 | + ->setDescription('Create a dummy values for dropdown attributes')->setHelp($help); |
|
| 32 | 32 | } |
| 33 | 33 | |
| 34 | 34 | /** |
@@ -88,9 +88,9 @@ discard block |
||
| 88 | 88 | // Attribute ID |
| 89 | 89 | if (is_null($input->getArgument('attribute-id'))) { |
| 90 | 90 | $attribute_code = Mage::getModel('eav/entity_attribute')->getCollection()->addFieldToSelect('*') |
| 91 | - ->addFieldToFilter('entity_type_id', array('eq' => 4)) |
|
| 92 | - ->addFieldToFilter('backend_type', array('in' => array('int'))) |
|
| 93 | - ->setOrder('attribute_id', 'ASC'); |
|
| 91 | + ->addFieldToFilter('entity_type_id', array('eq' => 4)) |
|
| 92 | + ->addFieldToFilter('backend_type', array('in' => array('int'))) |
|
| 93 | + ->setOrder('attribute_id', 'ASC'); |
|
| 94 | 94 | $attribute_codes = array(); |
| 95 | 95 | |
| 96 | 96 | foreach ($attribute_code as $item) { |