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

SVN:trunk[2511]
This commit is contained in:
Denis Flaven
2012-12-05 13:37:13 +00:00
parent 7561f8f8da
commit 3e2e0be05e

View File

@@ -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();