The storageroom.php page was generating a table using the device array index as the DeviceID, which is not correct.

Resolved.