mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-19 23:32:17 +02:00
Set "portal" as the origin of user requests created from the portal.
SVN:trunk[2511]
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user