Skip to content

Commit

Permalink
Corrects coding std
Browse files Browse the repository at this point in the history
  • Loading branch information
xtophe38 committed Apr 29, 2021
1 parent c5a54cb commit a131978
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions assign-to-me.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,9 @@
$aExpectedAttributes = $oTicket->GetTransitionAttributes($sStimulus /*, current state*/);
$bAttributesToBeSetForTransition = false;
foreach($aExpectedAttributes as $sAttCode => $iFlag) {
if (($sAttCode != 'team_id') && ($sAttCode != 'agent_id'))
{
if (($sAttCode != 'team_id') && ($sAttCode != 'agent_id')) {
// Attributes team_id and agent_id should not be part of that check
if (($iFlag & (OPT_ATT_MUSTCHANGE | OPT_ATT_MUSTPROMPT)) || (($iFlag & OPT_ATT_MANDATORY) && ($oTicket->Get($sAttCode) == '')))
{
if (($iFlag & (OPT_ATT_MUSTCHANGE | OPT_ATT_MUSTPROMPT)) || (($iFlag & OPT_ATT_MANDATORY) && ($oTicket->Get($sAttCode) == ''))) {
$bAttributesToBeSetForTransition = true;
break;
}
Expand Down

0 comments on commit a131978

Please sign in to comment.