Browse Source

N.710 Do not notify ignored when the impacted items is computed again. Side effect: PHP Notice: Undefined offset: N in .../itop-tickets/main.itop-tickets.php on line 263.

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@4632 a333f486-631f-4898-b8df-5754b55c2be0
romainq 8 years ago
parent
commit
73f1be9639
1 changed files with 2 additions and 2 deletions
  1. 2 2
      datamodels/2.x/itop-tickets/main.itop-tickets.php

+ 2 - 2
datamodels/2.x/itop-tickets/main.itop-tickets.php

@@ -1,5 +1,5 @@
 <?php
 <?php
-// Copyright (C) 2010-2012 Combodo SARL
+// Copyright (C) 2010-2017 Combodo SARL
 //
 //
 //   This file is part of iTop.
 //   This file is part of iTop.
 //
 //
@@ -260,7 +260,7 @@ class _Ticket extends cmdbAbstractObject
 				
 				
 				case 'Contact':
 				case 'Contact':
 				// Only link Contacts which are not already linked to the ticket
 				// Only link Contacts which are not already linked to the ticket
-				if (!array_key_exists($iKey, $aContactsToRoleCode) || ($aCIsToImpactCode[$iKey] != 'do_not_notify'))
+				if (!array_key_exists($iKey, $aContactsToRoleCode) || ($aContactsToRoleCode[$iKey] != 'do_not_notify'))
 				{
 				{
 					$oNewLink = new lnkContactToTicket();
 					$oNewLink = new lnkContactToTicket();
 					$oNewLink->Set('contact_id', $iKey);
 					$oNewLink->Set('contact_id', $iKey);