Jelajahi Sumber

Customer portal: the list of service subcategories of a user request must be filtered on 'service request'

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@4079 a333f486-631f-4898-b8df-5754b55c2be0
romainq 9 tahun lalu
induk
melakukan
cb93a043c2
1 mengubah file dengan 0 tambahan dan 37 penghapusan
  1. 0 37
      datamodels/2.x/itop-full-itil/datamodel.itop-full-itil.xml

+ 0 - 37
datamodels/2.x/itop-full-itil/datamodel.itop-full-itil.xml

@@ -35,43 +35,6 @@
 				</method>
 			</methods>
 		</class>
-		<class id="UserRequest">
-			<fields>
-				<field id="request_type" xsi:type="AttributeEnum">
-					<default_value _delta="redefine"></default_value>
-				</field>
-				<field id="servicesubcategory_id" xsi:type="AttributeExternalKey">
-					<filter _delta="redefine">
-                        <![CDATA[SELECT ServiceSubcategory WHERE service_id = :this->service_id AND (ISNULL(:this->request_type) OR request_type = :this->request_type) AND status != 'obsolete']]></filter>
-				</field>
-			</fields>
-			<methods>
-				<method id="ComputeValues" _delta="redefine">
-					<static>false</static>
-					<access>public</access>
-					<type>Overload-DBObject</type>
-					<code><![CDATA[	public function ComputeValues()
-	{
-		// Compute the priority of the ticket
-		$this->Set('priority', $this->ComputePriority());
-
-		// Compute the request_type if not already given
-		$sType = $this->Get('request_type');
-        if (is_null($sType) || ($sType === ''))
-		{
-			$iSvcSubcat = $this->Get('servicesubcategory_id');
-			if ($iSvcSubcat != 0)
-			{
-				$sType = $this->Get('servicesubcategory_id->request_type');
-				$this->Set('request_type', $sType);
-			}
-		}
-
-		return parent::ComputeValues();
-	}]]></code>
-				</method>
-			</methods>
-		</class>
 	</classes>
 	<module_designs>
 		<module_design id="itop-portal">