Option identifier for ICML (#203)

This commit is contained in:
Yura 2020-11-25 10:52:11 +03:00 committed by GitHub
parent c2abd5acd8
commit fb7290f865
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -140,7 +140,8 @@ class ModelExtensionRetailcrmIcml extends Model
$options[$optionIds[0]] = array( $options[$optionIds[0]] = array(
'name' => $optionData['optionName'], 'name' => $optionData['optionName'],
'value' => $optionData['optionValue'], 'value' => $optionData['optionValue'],
'value_id' => $option[1] 'value_id' => $option[1],
'option_id' => $optionIds[1]
); );
} }
} }
@ -296,7 +297,7 @@ class ModelExtensionRetailcrmIcml extends Model
if (!empty($options)) { if (!empty($options)) {
foreach($options as $optionKey => $optionData) { foreach($options as $optionKey => $optionData) {
$param = $this->dd->createElement('param'); $param = $this->dd->createElement('param');
$param->setAttribute('code', $optionKey); $param->setAttribute('code', $optionData['option_id']);
$param->setAttribute('name', $optionData['name']); $param->setAttribute('name', $optionData['name']);
$param->appendChild($this->dd->createTextNode($optionData['value'])); $param->appendChild($this->dd->createTextNode($optionData['value']));
$e->appendChild($param); $e->appendChild($param);