Commit 4d3af555 authored by Andrey Vertiprahov's avatar Andrey Vertiprahov
Browse files

Fix object set rack number.

parent 8bda83a3
......@@ -76,7 +76,7 @@ class RackPlugin(InvPlugin):
def api_set_rack_load(self, request, id, cid, position_front, position_rear, shift):
o = self.app.get_object_or_404(Object, id=id)
co = self.app.get_object_or_404(Object, id=cid)
if co.container != o.id:
if co.container.id != o.id:
return self.app.response_not_found()
if position_front:
co.set_data("rackmount", "position", position_front)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment