More webgui development
This commit is contained in:
1 parent
c3b5ef95a9
commit
0c09ce2916
21 files changed
+1056
-155
No files matched your search
+1
-1
@@ -64,7 +64,7 @@ switch ($submit = form_get_action()) {
|
||||
break;
|
||||
}
|
||||
// - no assigned equipment
|
||||
$sth = $pdo->prepare("SELECT COUNT(*) FROM inventory WHERE boxtype='storage' AND sid=?");
|
||||
$sth = $pdo->prepare("SELECT COUNT(*) FROM inventory WHERE conttype='storage' AND sid=?");
|
||||
$sth->execute([$id]);
|
||||
if ($sth->fetchColumn() > 0) {
|
||||
$g_error->Add(_('Delete failed, assigned equipment detected!'));
|
||||
|
||||
Reference in new issue
Block a user