Skip to content

Commit

Permalink
Merge branch 'fixed-opt-arg-order' into 'master'
Browse files Browse the repository at this point in the history
Fixed issue with order of optional arguments

See merge request mpluskassa/mplus-api-client-deprecated!59
  • Loading branch information
freerk-mpluskassa committed Apr 29, 2021
2 parents 837cbe5 + 21bf8dc commit 4337d02
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Mplusqapiclient.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

class MplusQAPIclient
{
const CLIENT_VERSION = '1.34.5';
const CLIENT_VERSION = '1.34.6';
const WSDL_TTL = 300;

var $MIN_API_VERSION_MAJOR = 0;
Expand Down Expand Up @@ -3912,7 +3912,7 @@ protected function validateCardType($cardType) {
}

//----------------------------------------------------------------------------
public function getOverview($cardType, $categoryId = 0, $selectFields, $pageNumber = null, $maxPerPage = null, $orderField = null, $sortOrder = null, $filters = null, $search = null, $retrieveImageList = null, $attempts = 0) {
public function getOverview($cardType, $categoryId = 0, $selectFields = array(), $pageNumber = null, $maxPerPage = null, $orderField = null, $sortOrder = null, $filters = null, $search = null, $retrieveImageList = null, $attempts = 0) {
try {
$this->validateCardType($cardType);
$request = $this->parser->convertGetOverviewRequest($cardType, $categoryId, $selectFields, $pageNumber, $maxPerPage, $orderField, $sortOrder, $filters, $search, $retrieveImageList);
Expand Down Expand Up @@ -3961,7 +3961,7 @@ public function getOverviewFields($cardType, $categoryId = 0, $attempts = 0) {
// END getOverviewFields()

//----------------------------------------------------------------------------
public function updateBatch($cardType, $categoryId = 0, $numbers, $fields, $attempts = 0) {
public function updateBatch($cardType, $categoryId = 0, $numbers = array(), $fields = array(), $attempts = 0) {
try {
$this->validateCardType($cardType);
$request = $this->parser->convertUpdateBatchRequest($cardType, $categoryId, $numbers, $fields);
Expand Down

0 comments on commit 4337d02

Please sign in to comment.