Просмотр исходного кода

DataModel : Reserved location_id field OQL filter in order to start the JOINs from the Location object. Otherwise the Intersect limitation was raising.

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@4253 a333f486-631f-4898-b8df-5754b55c2be0
glajarige 9 лет назад
Родитель
Сommit
9d4399cb12
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      datamodels/2.x/itop-config-mgmt/datamodel.itop-config-mgmt.xml

+ 2 - 2
datamodels/2.x/itop-config-mgmt/datamodel.itop-config-mgmt.xml

@@ -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>