From 687046dde39fa7729f2a49e29a90bb2a9e448f06 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 24 Apr 2018 15:43:29 +0200 Subject: [roomplanner] Fix deleting PCs not from current location subnet --- modules-available/roomplanner/clientscript.js | 1 + 1 file changed, 1 insertion(+) 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); -- cgit v1.2.3-55-g7522