CMXX - BUGFIX

This commit is contained in:
“VeLiTi”
2024-11-11 19:45:41 +01:00
parent a20e9440d0
commit 1c2d0d0496
3 changed files with 8 additions and 7 deletions

View File

@@ -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)) {