Skip to content

Commit edf3232

Browse files
author
Dennis van den Heerik
committed
Fixed getProductOverviewFields
1 parent addd2f8 commit edf3232

1 file changed

Lines changed: 5 additions & 9 deletions

File tree

Mplusqapiclient.php

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
class MplusQAPIclient
44
{
5-
const CLIENT_VERSION = '1.26.0';
6-
const WSDL_TTL = 300; // 5 min WSDL TTL
5+
const CLIENT_VERSION = '1.26.1';
6+
const WSDL_TTL = 300;
77

88
var $MIN_API_VERSION_MAJOR = 0;
99
var $MIN_API_VERSION_MINOR = 9;
@@ -5804,15 +5804,11 @@ public function parseGetProductOverviewResult($soapGetProductOverviewResult) {
58045804
//----------------------------------------------------------------------------
58055805
public function parseGetProductOverviewFieldsResult($soapGetProductOverviewFieldsResult) {
58065806
$productOverviewFields = array();
5807-
die(print_r($soapGetProductOverviewFieldsResult, true));
58085807

5809-
if(isset($soapGetProductOverviewResult->productOverview)) {
5810-
$productOverview = objectToArray($soapGetProductOverviewResult->productOverview);
5811-
}
5812-
if (isset($soapGetProductOverviewResult->productOverviewArticleList->productOverviewArticle)) {
5813-
$productOverview['productOverviewArticleList'] = objectToArray($soapGetProductOverviewResult->productOverviewArticleList->productOverviewArticle);
5808+
if (isset($soapGetProductOverviewFieldsResult->productOverviewFieldsList->productOverviewFields)) {
5809+
$productOverviewFields = objectToArray($soapGetProductOverviewFieldsResult->productOverviewFieldsList->productOverviewFields);
58145810
}
5815-
return $productOverview;
5811+
return $productOverviewFields;
58165812
} // END parseGetProductOverviewFieldsResult()
58175813

58185814

0 commit comments

Comments
 (0)