Add missing urldecode

This commit is contained in:
Kristian Stöckel 2021-08-06 19:43:16 +02:00
parent eecb321086
commit 14e3a1a020
No known key found for this signature in database
GPG Key ID: 3CE9C31E33083581

View File

@ -161,7 +161,7 @@ class StockApiController extends BaseApiController
{ {
try try
{ {
$args['productId'] = $this->getStockService()->GetProductIdFromBarcode($args['barcode']); $args['productId'] = $this->getStockService()->GetProductIdFromBarcode(urldecode($args['barcode']));
return $this->AddProduct($request, $response, $args); return $this->AddProduct($request, $response, $args);
} }
catch (\Exception $ex) catch (\Exception $ex)
@ -322,7 +322,7 @@ class StockApiController extends BaseApiController
{ {
try try
{ {
$args['productId'] = $this->getStockService()->GetProductIdFromBarcode($args['barcode']); $args['productId'] = $this->getStockService()->GetProductIdFromBarcode(urldecode($args['barcode']));
return $this->ConsumeProduct($request, $response, $args); return $this->ConsumeProduct($request, $response, $args);
} }
catch (\Exception $ex) catch (\Exception $ex)
@ -496,7 +496,7 @@ class StockApiController extends BaseApiController
{ {
try try
{ {
$args['productId'] = $this->getStockService()->GetProductIdFromBarcode($args['barcode']); $args['productId'] = $this->getStockService()->GetProductIdFromBarcode(urldecode($args['barcode']));
return $this->InventoryProduct($request, $response, $args); return $this->InventoryProduct($request, $response, $args);
} }
catch (\Exception $ex) catch (\Exception $ex)
@ -550,7 +550,7 @@ class StockApiController extends BaseApiController
{ {
try try
{ {
$args['productId'] = $this->getStockService()->GetProductIdFromBarcode($args['barcode']); $args['productId'] = $this->getStockService()->GetProductIdFromBarcode(urldecode($args['barcode']));
return $this->OpenProduct($request, $response, $args); return $this->OpenProduct($request, $response, $args);
} }
catch (\Exception $ex) catch (\Exception $ex)
@ -575,7 +575,7 @@ class StockApiController extends BaseApiController
{ {
try try
{ {
$productId = $this->getStockService()->GetProductIdFromBarcode($args['barcode']); $productId = $this->getStockService()->GetProductIdFromBarcode(urldecode($args['barcode']));
return $this->ApiResponse($response, $this->getStockService()->GetProductDetails($productId)); return $this->ApiResponse($response, $this->getStockService()->GetProductDetails($productId));
} }
catch (\Exception $ex) catch (\Exception $ex)
@ -804,7 +804,7 @@ class StockApiController extends BaseApiController
{ {
try try
{ {
$args['productId'] = $this->getStockService()->GetProductIdFromBarcode($args['barcode']); $args['productId'] = $this->getStockService()->GetProductIdFromBarcode(urldecode($args['barcode']));
return $this->TransferProduct($request, $response, $args); return $this->TransferProduct($request, $response, $args);
} }
catch (\Exception $ex) catch (\Exception $ex)