summaryrefslogtreecommitdiffstats
path: root/modules-available/roomplanner
diff options
context:
space:
mode:
authorSimon Rettberg2018-04-24 15:43:29 +0200
committerSimon Rettberg2018-04-24 15:43:29 +0200
commit687046dde39fa7729f2a49e29a90bb2a9e448f06 (patch)
tree8b1c8c444c597b39d78bf8080bbb069c38e69051 /modules-available/roomplanner
parentstyle.css: Quickfix for horizontal scrolling glitches (diff)
downloadslx-admin-687046dde39fa7729f2a49e29a90bb2a9e448f06.tar.gz
slx-admin-687046dde39fa7729f2a49e29a90bb2a9e448f06.tar.xz
slx-admin-687046dde39fa7729f2a49e29a90bb2a9e448f06.zip
[roomplanner] Fix deleting PCs not from current location subnet
Diffstat (limited to 'modules-available/roomplanner')
-rw-r--r--modules-available/roomplanner/clientscript.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules-available/roomplanner/clientscript.js b/modules-available/roomplanner/clientscript.js
index bd29c06c..823c212a 100644
--- a/modules-available/roomplanner/clientscript.js
+++ b/modules-available/roomplanner/clientscript.js
@@ -184,6 +184,7 @@ function onPcDelete(muuid) {
value = subnetMachines[i];
}
});
+ if (!value) return;
}
value.fixedlocationid = null;
makeCombinedFieldSingle(value);