mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-20 17:18:51 +02:00
Fix bug #835 Remove dependency between ticket and Delivery model
SVN:trunk[2994]
This commit is contained in:
@@ -25,6 +25,20 @@
|
||||
</details>
|
||||
</presentation>
|
||||
</class>
|
||||
<class id="Ticket">
|
||||
<fields>
|
||||
<field id="team_id" xsi:type="AttributeExternalKey" _delta="redefine">
|
||||
<filter><![CDATA[SELECT Team AS t JOIN lnkDeliveryModelToContact AS l1 ON l1.contact_id=t.id JOIN DeliveryModel AS dm ON l1.deliverymodel_id=dm.id JOIN Organization AS o ON o.deliverymodel_id=dm.id WHERE o.id = :this->org_id]]></filter>
|
||||
<dependencies>
|
||||
<attribute id="org_id"/>
|
||||
</dependencies>
|
||||
<sql>team_id</sql>
|
||||
<target_class>Team</target_class>
|
||||
<is_null_allowed>true</is_null_allowed>
|
||||
<on_target_delete>DEL_AUTO</on_target_delete>
|
||||
</field>
|
||||
</fields>
|
||||
</class>
|
||||
<class id="Contract" _delta="define">
|
||||
<parent>cmdbAbstractObject</parent>
|
||||
<properties>
|
||||
|
||||
@@ -14,6 +14,7 @@ SetupWebPage::AddModule(
|
||||
//
|
||||
'dependencies' => array(
|
||||
'itop-config-mgmt/2.0.0',
|
||||
'itop-tickets/2.0.0',
|
||||
),
|
||||
'mandatory' => false,
|
||||
'visible' => true,
|
||||
|
||||
@@ -25,8 +25,20 @@
|
||||
</details>
|
||||
</presentation>
|
||||
</class>
|
||||
|
||||
|
||||
<class id="Ticket">
|
||||
<fields>
|
||||
<field id="team_id" xsi:type="AttributeExternalKey" _delta="redefine">
|
||||
<filter><![CDATA[SELECT Team AS t JOIN lnkDeliveryModelToContact AS l1 ON l1.contact_id=t.id JOIN DeliveryModel AS dm ON l1.deliverymodel_id=dm.id JOIN Organization AS o ON o.deliverymodel_id=dm.id WHERE o.id = :this->org_id]]></filter>
|
||||
<dependencies>
|
||||
<attribute id="org_id"/>
|
||||
</dependencies>
|
||||
<sql>team_id</sql>
|
||||
<target_class>Team</target_class>
|
||||
<is_null_allowed>true</is_null_allowed>
|
||||
<on_target_delete>DEL_AUTO</on_target_delete>
|
||||
</field>
|
||||
</fields>
|
||||
</class>
|
||||
<class id="Contract" _delta="define">
|
||||
<parent>cmdbAbstractObject</parent>
|
||||
<properties>
|
||||
|
||||
@@ -14,6 +14,7 @@ SetupWebPage::AddModule(
|
||||
//
|
||||
'dependencies' => array(
|
||||
'itop-config-mgmt/2.0.0',
|
||||
'itop-tickets/2.0.0',
|
||||
),
|
||||
'mandatory' => false,
|
||||
'visible' => true,
|
||||
|
||||
@@ -64,10 +64,6 @@
|
||||
<target_attcode>name</target_attcode>
|
||||
</field>
|
||||
<field id="team_id" xsi:type="AttributeExternalKey">
|
||||
<filter><![CDATA[SELECT Team AS t JOIN lnkDeliveryModelToContact AS l1 ON l1.contact_id=t.id JOIN DeliveryModel AS dm ON l1.deliverymodel_id=dm.id JOIN Organization AS o ON o.deliverymodel_id=dm.id WHERE o.id = :this->org_id]]></filter>
|
||||
<dependencies>
|
||||
<attribute id="org_id"/>
|
||||
</dependencies>
|
||||
<sql>team_id</sql>
|
||||
<target_class>Team</target_class>
|
||||
<is_null_allowed>true</is_null_allowed>
|
||||
|
||||
Reference in New Issue
Block a user