You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
v 0.85 or 0.90
When notification 'Periodicity' or 'Periodicity Notice' is used for contracts, with the default notification template 'Contracts', some fields are missing in the notification (name, number and type of contract) and some php errors are generated. Extract from php-errors.log hereafter.
In inc/contract.class.php, function cronContract, variable $contracts passed to raisedEvent (near line 1135) is not fully initialized in the cases mentionned above.
See http://forum.glpi-project.org/viewtopic.php?id=82880
v 0.85 or 0.90
When notification 'Periodicity' or 'Periodicity Notice' is used for contracts, with the default notification template 'Contracts', some fields are missing in the notification (name, number and type of contract) and some php errors are generated. Extract from php-errors.log hereafter.
In inc/contract.class.php, function cronContract, variable $contracts passed to raisedEvent (near line 1135) is not fully initialized in the cases mentionned above.
See http://forum.glpi-project.org/viewtopic.php?id=82880
2015-08-03 16:26:48 [2@debian]
*** PHP Notice(8): Undefined index: name
Backtrace :
inc/notificationtargetcontract.class.php:69
inc/notificationtarget.class.php:1069 NotificationTargetContract->getDatasForTemplate()
inc/notificationtemplate.class.php:236 NotificationTarget->getForTemplate()
inc/notificationevent.class.php:166 NotificationTemplate->getTemplateByLanguage()
inc/contract.class.php:1136 NotificationEvent::raiseEvent()
: Contract::cronContract()
inc/crontask.class.php:796 call_user_func()
front/crontask.form.php:46 CronTask::launch()
2015-08-03 16:26:48 [2@debian]
*** PHP Notice(8): Undefined index: num
Backtrace :
inc/notificationtargetcontract.class.php:70
inc/notificationtarget.class.php:1069 NotificationTargetContract->getDatasForTemplate()
inc/notificationtemplate.class.php:236 NotificationTarget->getForTemplate()
inc/notificationevent.class.php:166 NotificationTemplate->getTemplateByLanguage()
inc/contract.class.php:1136 NotificationEvent::raiseEvent()
: Contract::cronContract()
inc/crontask.class.php:796 call_user_func()
front/crontask.form.php:46 CronTask::launch()
2015-08-03 16:26:48 [2@debian]
*** PHP Notice(8): Undefined index: contracttypes_id
Backtrace :
inc/notificationtargetcontract.class.php:72
inc/notificationtarget.class.php:1069 NotificationTargetContract->getDatasForTemplate()
inc/notificationtemplate.class.php:236 NotificationTarget->getForTemplate()
inc/notificationevent.class.php:166 NotificationTemplate->getTemplateByLanguage()
inc/contract.class.php:1136 NotificationEvent::raiseEvent()
: Contract::cronContract()
inc/crontask.class.php:796 call_user_func()
front/crontask.form.php:46 CronTask::launch()
The text was updated successfully, but these errors were encountered: