From 3e2e0be05efb6f15e3b1cc1eddc51f1b4b6d30a2 Mon Sep 17 00:00:00 2001 From: Denis Flaven Date: Wed, 5 Dec 2012 13:37:13 +0000 Subject: [PATCH] Set "portal" as the origin of user requests created from the portal. SVN:trunk[2511] --- portal/index.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/portal/index.php b/portal/index.php index fb14508cf8..9640e65812 100644 --- a/portal/index.php +++ b/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();