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