my glpi version 0.83.7, She works steadily for many years

 I added to notificationtargetticket.class.php
     // is ticket deleted
      $datas['##ticket.isdeleted##'] =
Dropdown::getYesNo($item->getField('is_deleted'));
//start
// Tickets status infos
$restrict = $data['tickets_id'];
$tickets = getAllDatasFromTable('glpi_tickets',$restrict);
$datas['tickets'] = array();
if (count($tickets)) {
        $ticket = new Ticket();
foreach ($tickets as $ticket) {
        $tmp = array();
        $datas['tickets'][] = $tmp;
        }
}
$datas['##ticket.number##'] = 0;
if (!empty($datas['tickets'])) {
        $datas['##ticket.number##'] = $datas['tickets_id']);
}
//finish


I need a new tag that would be the ticket number, thank you very much for
having responded


2015-12-08 14:40 GMT+02:00 Moron, Olivier <olivier.mo...@araymond.com>:

> Hello,
>
>
>
> Could you explain in details?
>
> And give your configuration?
>
> Thank you,
>
> Regards,
>
>
>
>
>
>
> *Olivier MORON *GLPI Development
>
> *RAYNET SAS*
> Tel : +33 476 33 4952
> Fax: +33 4 76 70 56 63
>
>
>
>
>
> *From:* Glpi-dev [mailto:glpi-dev-boun...@gna.org] *On Behalf Of *Max
> Safonov
> *Sent:* Tuesday, December 08, 2015 1:23 PM
> *To:* glpi-dev@gna.org
> *Subject:* [Glpi-dev] add new tag
>
>
>
> Hello, I need help.
>
> I need to add a new tag with ticket number is the same as ##ticket.id##
> <http://ticket.id#%23>
> I tried to add on example notificationtargetticket.class.php
> but does not work
>
> Please help with the problem.
>
> Sincerely,
> Max Safonov
>
> _______________________________________________
> Glpi-dev mailing list
> Glpi-dev@gna.org
> https://mail.gna.org/listinfo/glpi-dev
>
_______________________________________________
Glpi-dev mailing list
Glpi-dev@gna.org
https://mail.gna.org/listinfo/glpi-dev

Reply via email to