View ProjeQtOr On SourceForge.net
ProjeQtOr free project management software - Problem in Tickets with 5.3.0 - ProjeQtOr
 

Problem in Tickets with 5.3.0

More
29 Mar 2016 15:44 - 29 Mar 2016 16:12 #1 by magast
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) { ...
Last edit: 29 Mar 2016 16:12 by magast.

Please Log in or Create an account to join the conversation.

More
29 Mar 2016 16:56 #2 by babynus
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;
  			}
  		}

Babynus
Administrator of ProjeQtOr web site

Please Log in or Create an account to join the conversation.

Moderators: babynusprotion
Time to create page: 0.042 seconds