r3013 - renderRackSpaceForObject(): use the right variable (ticket:271)
[racktables] / inc / interface.php
index 6a31c4d..1a38c88 100644 (file)
@@ -1614,7 +1614,7 @@ function renderRackSpaceForObject ($object_id)
                foreach ($allRacksData as $rack)
                {
                        amplifyCell ($rack);
-                       $workingRacksData[$rack_id] = $rack;
+                       $workingRacksData[$rack['id']] = $rack;
                }
                foreach ($workingRacksData as &$rackData)
                        applyObjectMountMask ($rackData, $object_id);