From cdb19c323d15aa7e03afc0cd80684b0c948a62be Mon Sep 17 00:00:00 2001 From: Luca Haid Date: Mon, 22 Dec 2025 09:36:22 +0100 Subject: [PATCH] fixed creating WarehouseArticles --- application/WarehouseArticle/WarehouseArticleController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/WarehouseArticle/WarehouseArticleController.php b/application/WarehouseArticle/WarehouseArticleController.php index cfee60901..c80214bfd 100644 --- a/application/WarehouseArticle/WarehouseArticleController.php +++ b/application/WarehouseArticle/WarehouseArticleController.php @@ -53,11 +53,11 @@ class WarehouseArticleController extends TTCrud { $this->additionalJSVariables['WAREHOUSE_ADMIN'] = false; } - protected function beforeCreate() { + protected function beforeCreate($postData): bool { if (!in_array($this->user->id, [2, 5, 6, 145, 14])) self::sendError("Sie haben keine Berechtigung, Artikel zu erstellen."); - $this->validateArticleNumber($_POST); + $this->validateArticleNumber($postData); return true; }