Commit 66ff9edf authored by Dmitry Volodin's avatar Dmitry Volodin
Browse files

Managed object filter bugfix

parent 12a42770
......@@ -175,7 +175,7 @@ class ManagedObject(models.Model):
rr.append("(sa_managedobject.administrative_domain_id=%s)")
pp.append(a.administrative_domain.id)
if a.group:
rr.append("(id IN (SELECT managedobject_id FROM sa_managedobject_groups WHERE objectgroup_id=%s))")
rr.append("(sa_managedobject.id IN (SELECT managedobject_id FROM sa_managedobject_groups WHERE objectgroup_id=%s))")
pp.append(a.group.id)
if len(rr)==1: # Single clause
r+=rr
......
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