瀏覽代碼

Set "portal" as the origin of user requests created from the portal.

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@2511 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 12 年之前
父節點
當前提交
b410913535
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      portal/index.php

+ 4 - 0
portal/index.php

@@ -343,6 +343,10 @@ function DoCreateRequest($oP, $oUserOrg)
 	{
 		$oRequest->Set(PORTAL_ATTCODE_TYPE, $oServiceSubCategory->Get(PORTAL_SET_TYPE_FROM));
 	}
+	if (MetaModel::IsValidAttCode('UserRequest', 'origin'))
+	{
+		$oRequest->Set('origin', 'portal');
+	}
 
 	/////$oP->DoUpdateObjectFromPostedForm($oObj);
 	$oAttPlugin = new AttachmentPlugIn();