diff --git a/hook.php b/hook.php index 49bfa66..756debb 100644 --- a/hook.php +++ b/hook.php @@ -613,7 +613,7 @@ function plugin_example_get_events(NotificationTargetTicket $target) { function plugin_example_get_datas(NotificationTargetTicket $target) { - $target->datas['##ticket.example##'] = __("Example datas", 'example'); + $target->data['##ticket.example##'] = __("Example datas", 'example'); } diff --git a/inc/notificationtargetexample.class.php b/inc/notificationtargetexample.class.php index 2146842..c7702f3 100644 --- a/inc/notificationtargetexample.class.php +++ b/inc/notificationtargetexample.class.php @@ -41,6 +41,6 @@ class PluginExampleNotificationTargetExample extends NotificationTarget { function getDatasForTemplate($event, $options=array()) { global $DB, $CFG_GLPI; - $this->datas['##example.name##'] = __('Example', 'example'); + $this->data['##example.name##'] = __('Example', 'example'); } }