defekter floorplan
This commit is contained in:
@@ -18,6 +18,13 @@ if ($type === 'patchpanel') {
|
||||
$portCount = (int)($_POST['port_count'] ?? 0);
|
||||
$comment = trim($_POST['comment'] ?? '');
|
||||
|
||||
if ($width <= 0) {
|
||||
$width = 140;
|
||||
}
|
||||
if ($height <= 0) {
|
||||
$height = 40;
|
||||
}
|
||||
|
||||
if ($id > 0) {
|
||||
$sql->set(
|
||||
"UPDATE floor_patchpanels SET name = ?, floor_id = ?, pos_x = ?, pos_y = ?, width = ?, height = ?, port_count = ?, comment = ? WHERE id = ?",
|
||||
|
||||
Reference in New Issue
Block a user