Jump to content

update error with webservice


Recommended Posts

When update through webservice, some fields with language setting, if some of these fields are not in the xml data, WebserviceRequest.php will got error, because it checking all those fields with i18n value. if the field is not required and not list in the data, it will fail.

 

I suggest change the code of WebserviceRequest.php Line 1353 from :

if (isset($fieldProperties['i18n']) && $fieldProperties['i18n'] )


 

to :

if (isset($fieldProperties['i18n']) && $fieldProperties['i18n'] && isset($attributes->$fieldName))


 

it will also check if the field is set in the xml data, it will do the following only when the field is in the xml data.

Link to comment
Share on other sites

×
×
  • Create New...