CMXX - BUGFIX
This commit is contained in:
@@ -2808,11 +2808,12 @@ function dateInRange($start_date, $end_date, $date_check)
|
||||
|
||||
function getLatestVersion($productcode,$token){
|
||||
|
||||
//BUILD POST DATA
|
||||
$data = json_encode(array("productcode" => $productcode), JSON_UNESCAPED_UNICODE);
|
||||
//API call
|
||||
$responses = ioAPIv2('/v2/products_software', $data, $token);
|
||||
//CALL TO API TO GET ALL ACTIVE CONTRACTS
|
||||
$api_url = '/v2/products_software/productcode='.$productcode;
|
||||
$responses = ioAPIv2($api_url,'',$token);
|
||||
|
||||
echo 'test';
|
||||
//Decode Payload
|
||||
if (!empty($responses)){$responses = json_decode($responses,true);}else{$responses = null;}
|
||||
|
||||
//DEFAULT OUTPUT
|
||||
@@ -2823,7 +2824,7 @@ function getLatestVersion($productcode,$token){
|
||||
"latest"=> "",
|
||||
"software"=> "",
|
||||
"source" => "",
|
||||
"source_type" => "",
|
||||
"source_type" => ""
|
||||
);
|
||||
|
||||
if(!empty($responses)) {
|
||||
|
||||
Reference in New Issue
Block a user