Added FCPs to TheToolAdded WarehouseOffer and WarehouseOfferTemplate, also fixed menu for Lager Point

This commit is contained in:
Luca Haid
2025-04-01 15:19:18 +02:00
parent a802ff8e05
commit 97529ba95f
12 changed files with 494 additions and 410 deletions
+7 -2
View File
@@ -33,8 +33,13 @@ class TTCrud extends mfBaseController {
$this->redirect("Dashboard");
}
$modelName = str_replace('Controller', 'Model', get_class($this));
$this->model = new $modelName();
$c = get_class($this);
foreach ([str_replace('Controller', 'Model', $c), str_replace('Controller', '', $c)] as $m)
if (class_exists($m)) {
$this->model = new $m();
break;
}
$this->postData = json_decode(file_get_contents('php://input'), true);
$this->checkArray = $this->getCheckArray();
$this->infoMessages = $this->getInfoMessages();