Преглед изворни кода

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

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