Menu

#2049 Change Ticket creation fails when adding a CI at ticket creation

Unassigned
new
nobody
None
Core/OQL
Critical
3.0.0
defect
2022-03-25
2022-03-25
R Panton
No

Recently after successfully upgrading to itop 3 I have noted a new issue which I haven't been able to resolve.
The issues occurs when a user tried to create a change to ticket and attaches a CI then click create.
The following error occurs:

Notice: Object of class lnkFunctionalCIToTicket could not be converted to int in /var/www/html/core/dbobjectset.class.php on line 1091

Fatal error: Uncaught Error: Call to a member function Get() on null in /var/www/html/core/attributedef.class.inc.php:1771 Stack trace: #0 /var/www/html/core/dbobject.class.php(4373): AttributeLinkedSet->GetForTemplate() #1 /var/www/html/core/metamodel.class.php(7532): DBObject->GetForTemplate() #2 /var/www/html/core/action.class.inc.php(416): MetaModel::ApplyParams() #3 /var/www/html/core/action.class.inc.php(347): ActionEmail->_DoExecute() #4 /var/www/html/core/trigger.class.inc.php(120): ActionEmail->DoExecute() #5 /var/www/html/core/trigger.class.inc.php(234): Trigger->DoActivate() #6 /var/www/html/core/dbobject.class.php(2930): TriggerOnObject->DoActivate() #7 /var/www/html/application/cmdbabstract.class.inc.php(4446): DBObject->DBInsertNoReload() #8 /var/www/html/env-production/itop-tickets/model.itop-tickets.php(145): cmdbAbstractObject->DBInsertNoReload() #9 /var/www/html/pages/UI.php(1108): Ticket->DBInsertNoReload() #10 {main} thrown in /var/www/html/core/attributedef.class.inc.php on line 1771

The error seems to be referring to the inability to convert LnkFunctionalCItoTicke class object to an int.
Not sure why or if it should be doing that.

NOTE: If I create change tickets without adding a CI then there is no issue. Also If I add the CI after the ticket is created then there is no issue. Only when I add the CI at ticket creation does the error occur.
Any suggestions as to a fix would be appreciated.

Discussion


Log in to post a comment.