[-] WS : #PSCFV-2888 : Fix bug
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@16094 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -1457,8 +1457,9 @@ class WebserviceRequestCore
|
||||
if (isset($fieldProperties['i18n']) && $fieldProperties['i18n'])
|
||||
{
|
||||
$i18n = true;
|
||||
foreach ($attributes->$fieldName->language as $lang)
|
||||
$object->{$fieldName}[(int)$lang->attributes()->id] = (string)$lang;
|
||||
if (isset($attributes->$fieldName, $attributes->$fieldName->language))
|
||||
foreach ($attributes->$fieldName->language as $lang)
|
||||
$object->{$fieldName}[(int)$lang->attributes()->id] = (string)$lang;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user