From 31cb0065b565fc1884fae22f1095dad37e07d09f Mon Sep 17 00:00:00 2001 From: Romain Quetiez Date: Fri, 11 Apr 2014 14:53:36 +0000 Subject: [PATCH] Integrated the portal with the module to dispatch incidents or user requests (the previous commit introduced too many changes, I did rollback unnecessary stuff) SVN:trunk[3125] --- portal/index.php | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/portal/index.php b/portal/index.php index 6bb04a659..16d411797 100644 --- a/portal/index.php +++ b/portal/index.php @@ -1148,15 +1148,7 @@ function MakeStimulusForm(WebPage $oP, $oObj, $sStimulusCode, $aEditAtt) $aArgs = array('this' => $oObj, 'formPrefix' => ''); $oAttDef = MetaModel::GetAttributeDef($sClass, $sAttCode); $sInputId = 'input_'.$sAttCode; - if (($sAttCode == 'user_satisfaction') || ($sAttCode == 'user_comment')) - { - $iFlags = OPT_ATT_MANDATORY; - } - else - { - $iFlags = 0; - } - $sHTMLValue = "".cmdbAbstractObject::GetFormElementForField($oP, $sClass, $sAttCode, $oAttDef, $sValue, $sDisplayValue, $sInputId, '', $iFlags, $aArgs).''; + $sHTMLValue = "".cmdbAbstractObject::GetFormElementForField($oP, $sClass, $sAttCode, $oAttDef, $sValue, $sDisplayValue, $sInputId, '', 0 /*$iFlags*/, $aArgs).''; $oP->add('

'.MetaModel::GetLabel($sClass, $sAttCode).'

'); $oP->add($sHTMLValue); @@ -1254,7 +1246,6 @@ try LoginWebPage::DoLogin(false /* bMustBeAdmin */, true /* IsAllowedToPortalUsers */); // Check user rights and prompt if needed ApplicationContext::SetUrlMakerClass('MyPortalURLMaker'); - ApplicationContext::SetPluginProperty('QueryLocalizerPlugin', 'language_code', UserRights::GetUserLanguage()); $aClasses = explode(',', MetaModel::GetConfig()->Get('portal_tickets')); $sMainClass = trim(reset($aClasses));