소스 검색

Limit rack according to location for PDU (see track #638)

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@2718 a333f486-631f-4898-b8df-5754b55c2be0
etaloc 12 년 전
부모
커밋
ebc00d7f3d
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      datamodels/2.x/itop-datacenter-mgmt/datamodel.itop-datacenter-mgmt.xml

+ 4 - 0
datamodels/2.x/itop-datacenter-mgmt/datamodel.itop-datacenter-mgmt.xml

@@ -761,6 +761,10 @@
       </properties>
       <fields>
         <field id="rack_id" xsi:type="AttributeExternalKey">
+          <filter><![CDATA[SELECT Rack WHERE location_id= :this->location_id]]></filter>
+          <dependencies>
+            <attribute id="location_id"/>
+          </dependencies>
           <sql>rack_id</sql>
           <target_class>Rack</target_class>
           <is_null_allowed>false</is_null_allowed>