mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 02:58:43 +02:00
DataModel : Reserved location_id field OQL filter in order to start the JOINs from the Location object. Otherwise the Intersect limitation was raising.
SVN:trunk[4253]
This commit is contained in:
@@ -482,7 +482,7 @@
|
||||
<is_null_allowed>true</is_null_allowed>
|
||||
</field>
|
||||
<field id="location_id" xsi:type="AttributeExternalKey">
|
||||
<filter><![CDATA[SELECT l FROM Organization AS child JOIN Organization AS root ON child.parent_id BELOW root.id JOIN Location AS l ON l.org_id=root.id WHERE child.id=:this->org_id]]></filter>
|
||||
<filter><![CDATA[SELECT l FROM Location AS l JOIN Organization AS root ON l.org_id=root.id JOIN Organization AS child ON child.parent_id BELOW root.id WHERE child.id= :this->org_id]]></filter>
|
||||
<dependencies>
|
||||
<attribute id="org_id"/>
|
||||
</dependencies>
|
||||
@@ -1657,7 +1657,7 @@
|
||||
<is_null_allowed>true</is_null_allowed>
|
||||
</field>
|
||||
<field id="location_id" xsi:type="AttributeExternalKey">
|
||||
<filter><![CDATA[SELECT l FROM Organization AS child JOIN Organization AS root ON child.parent_id BELOW root.id JOIN Location AS l ON l.org_id=root.id WHERE child.id= :this->org_id]]></filter>
|
||||
<filter><![CDATA[SELECT l FROM Location AS l JOIN Organization AS root ON l.org_id=root.id JOIN Organization AS child ON child.parent_id BELOW root.id WHERE child.id= :this->org_id]]></filter>
|
||||
<dependencies>
|
||||
<attribute id="org_id"/>
|
||||
</dependencies>
|
||||
|
||||
Reference in New Issue
Block a user