mirror of
https://github.com/grocy/grocy.git
synced 2026-04-05 20:36:15 +02:00
Correctly parsing boolean parameter
This commit is contained in:
parent
03c528311e
commit
65a9a9cd2c
|
|
@ -21,7 +21,7 @@ class PrintApiController extends BaseApiController {
|
|||
|
||||
$printHeader = true;
|
||||
if (isset($params['printHeader'])) {
|
||||
$printHeader = $params['printHeader'];
|
||||
$printHeader = ($params['printHeader'] === "true");
|
||||
}
|
||||
$items = $this->getStockService()->GetShoppinglistInPrintableStrings($listId);
|
||||
return $this->ApiResponse($response, $this->getPrintService()->printShoppingList($printHeader, $items));
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user