diff --git a/portal/index.php b/portal/index.php index f598820ac..6bb04a659 100644 --- a/portal/index.php +++ b/portal/index.php @@ -915,6 +915,8 @@ function ShowDetailsRequest(WebPage $oP, $oObj) case 'assigned': case 'frozen': case 'pending': + case 'dispatched': + case 'redispatched': $aEditAtt = array( $sLogAttCode => '????' ); @@ -1146,7 +1148,15 @@ function MakeStimulusForm(WebPage $oP, $oObj, $sStimulusCode, $aEditAtt) $aArgs = array('this' => $oObj, 'formPrefix' => ''); $oAttDef = MetaModel::GetAttributeDef($sClass, $sAttCode); $sInputId = 'input_'.$sAttCode; - $sHTMLValue = "".cmdbAbstractObject::GetFormElementForField($oP, $sClass, $sAttCode, $oAttDef, $sValue, $sDisplayValue, $sInputId, '', 0 /*$iFlags*/, $aArgs).''; + 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).''; $oP->add('