Skip to content

Commit 2c844ad

Browse files
committed
AC-3223::Special characters in category url_key (when created via REST API)
1 parent d253a44 commit 2c844ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/Magento/Framework/Model/AbstractExtensibleModel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ public function getData($key = '', $index = null)
297297
? $this->_data[self::CUSTOM_ATTRIBUTES]
298298
: [];
299299
$this->convertCustomAttributeValues($customAttributes);
300-
$data = array_merge($this->_data, $customAttributes);
300+
$data = $customAttributes ? array_merge($customAttributes, $this->_data) : array_merge($this->_data, $customAttributes);
301301
unset($data[self::CUSTOM_ATTRIBUTES]);
302302
} else {
303303
$data = parent::getData($key, $index);

0 commit comments

Comments
 (0)