This commit is contained in:
Flatlogic Bot 2026-04-08 02:38:27 +00:00
parent 5e60c40234
commit 1d7d4e1902

View File

@ -64,9 +64,9 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
$uuid = $item['reference'] ?? ($item['stdItem']['UUID'] ?? ''); $uuid = $item['reference'] ?? ($item['stdItem']['UUID'] ?? '');
if (!$uuid) continue; if (!$uuid) continue;
$name = $item['stdItem']['Name'] ?? ''; $name = $item['Name'] ?? ($item['stdItem']['Name'] ?? '');
$type = $item['type'] ?? ''; $classification = $item['classification'] ?? ''; $parts = explode('.', $classification); $type = $parts[1] ?? ($item['type'] ?? '');
$subtype = $item['subType'] ?? ''; $subtype = $parts[2] ?? ($item['subType'] ?? '');
$stmt_check->execute(['uuid' => $uuid]); $stmt_check->execute(['uuid' => $uuid]);
if ($stmt_check->fetch()) { if ($stmt_check->fetch()) {