Forum

Problem in Tickets ...
 
Notifications
Retirer tout

Problem in Tickets with 5.3.0

2 Posts
2 Utilisateurs
0 Reactions
3,055 Vu
(@magast)
Posts: 42
Active Member
Début du sujet
 
[#3196]

After updating to 5.3.0 it is not possible to create a new ticket.

2016-03-29 15:38:31.400 ** ERROR ** ERROR **
2016-03-29 15:38:31.400
** ERROR ** on file '/var/www/apps/w2u/projectorria/model/TicketMain.php' at line (336)
2016-03-29 15:38:31.400
** ERROR ***** cause = Undefined property: Activity::$idTargetVersion

The error appears only if i want to add a activity to the ticket.

Solved wich additional code in line 336 like:
if (isset($act->idTargetVersion) && $act->idTargetVersion) { ...


 
Posté : 29 Mar PM 17:033
(@babynus)
Posts: 14952
Membre Admin
 

Hi,

Thanks for reporting and for the patch.

Issue recorded as Ticket #2028.
Complete fix is to replace line 336+ from

  		if ($act->idTargetVersion) {
  			$this->idTargetVersion=$act->idTargetVersion;
  			$vers=new Version($act->idTargetVersion);
  			if ($vers->idProduct) {
  				$this->idProductOrComponent=$vers->idProduct;
  			}
  		}

to

  		if ($act->idTargetProductVersion) {
  			$this->idTargetProductVersion=$act->idTargetProductVersion;
  			$vers=new Version($act->idTargetProductVersion);
  			if ($vers->idProduct) {
  				$this->idProduct=$vers->idProduct;
  			}
  		}

 
Posté : 29 Mar PM 18:033
Share:
Retour en haut