Browse Source

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 years ago
parent
commit
b410913535
1 changed files with 4 additions and 0 deletions
  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));
 		$oRequest->Set(PORTAL_ATTCODE_TYPE, $oServiceSubCategory->Get(PORTAL_SET_TYPE_FROM));
 	}
 	}
+	if (MetaModel::IsValidAttCode('UserRequest', 'origin'))
+	{
+		$oRequest->Set('origin', 'portal');
+	}
 
 
 	/////$oP->DoUpdateObjectFromPostedForm($oObj);
 	/////$oP->DoUpdateObjectFromPostedForm($oObj);
 	$oAttPlugin = new AttachmentPlugIn();
 	$oAttPlugin = new AttachmentPlugIn();