You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2011-08-01 11:12:03

sangram.gohil
Member
Registered: 2009-04-09
Posts: 12

location and phone not working in alerting

Hi,

I am on 80.2 version which is recently updated from 0.78

Everything fine & smooth apart from my alerting for following filed.

##author.location##

##author.phone##

is not working underalerting. is there any additional settings which i should do in alerting template.

Previously, it was done being alerted by ##ticket.location##

Offline

#2 2011-08-01 13:16:01

yllen
GLPI-DEV
From: Sillery (51)
Registered: 2008-01-14
Posts: 15,278

Re: location and phone not working in alerting

Are Location and Phone fields full in user form ?
How is your template ?


CentOS 6.5 - CentOS 7.x
PHP 5.6 - PHP 7.x - MySQL 5.6  - MariaDB 10.2 + APC + oOPcache
GLPI from 0.72 to dev version
Certifiée ITIL (ITV2F, ITILF, ITILOSA)

Offline

#3 2011-08-01 14:22:04

sangram.gohil
Member
Registered: 2009-04-09
Posts: 12

Re: location and phone not working in alerting

Yes all fields are present and was working previously.

below is my template. Let me know if i am doing something wrong.

<div class="description"><br />
<pre class="description"><span class="Apple-style-span" style="text-align: left; widows: 2; text-transform: none; text-indent: 0px; border-collapse: separate; font: medium 'Times New Roman'; white-space: normal; orphans: 2; letter-spacing: normal; color: #000000; word-spacing: 0px;"><span class="Apple-style-span" style="line-height: 18px; font-family: Verdana, Helvetica, Arial, sans-serif; color: #333333; font-size: 13px;">##FOREACH LAST log##</span></span></pre>
</div>
<div class="description">
<div class="description">
<table style="width: 100%;" border="1" cellpadding="2">
<tbody>
<tr>
<td width="170"><strong>Update&#160;by:</strong></td>
<td valign="top">##ticket.log.user##</td>
</tr>
<tr>
<td valign="top"><strong>Update Date:</strong></td>
<td valign="top">##ticket.log.date##</td>
</tr>
<tr>
<td valign="top"><strong>##ticket.log.field##</strong></td>
<td valign="top">##ticket.log.content##</td>
</tr>
</tbody>
</table>
</div>
<div class="description"><span class="Apple-style-span" style="text-align: left; widows: 2; text-transform: none; text-indent: 0px; border-collapse: separate; font: medium 'Times New Roman'; white-space: normal; orphans: 2; letter-spacing: normal; color: #000000; word-spacing: 0px;"><span class="Apple-style-span" style="line-height: 18px; font-family: Verdana, Helvetica, Arial, sans-serif; color: #333333; font-size: 13px;"><span style="color: #000000;">##ENDFOREACHlog##</span></span></span></div>
</div>
<table style="width: 100%;" border="1" cellpadding="2">
<tbody>
<tr>
<td style="background-color: #9da8b3; width: 170px;" colspan="2">
<p><span style="color: #ffff00;"><strong>Description of Ticket :</strong></span></p>
</td>
</tr>
<tr>
<td width="170"><strong>Title</strong></td>
<td valign="top">##ticket.title##</td>
</tr>
<tr>
<td valign="top"><strong>Requester</strong></td>
<td valign="top">##ticket.authors##</td>
</tr>
<tr>
<td valign="top"><strong>User Location</strong></td>
<td valign="top">##author.location##</td>
</tr>
<tr>
<td valign="top"><strong>User Contact</strong></td>
<td valign="top">##author.phone##</td>
</tr>
<tr>
<td valign="top"><strong>Start date</strong></td>
<td valign="top">##ticket.creationdate##</td>
</tr>
<tr>
<td valign="top"><strong>Request source</strong></td>
<td valign="top">##ticket.requesttype##</td>
</tr>
<tr>
<td valign="top"><strong>Concerned Item</strong></td>
<td valign="top">##lang.ticket.itemtype##</td>
</tr>
<tr>
<td valign="top"><strong>Status</strong></td>
<td valign="top">##ticket.status##</td>
</tr>
<tr>
<td valign="top"><strong>Assigned to</strong></td>
<td valign="top">##ticket.assigntousers## / ##ticket.assigntogroups##</td>
</tr>
<tr>
<td valign="top"><strong>Priority</strong></td>
<td valign="top">##ticket.priority##</td>
</tr>
<tr>
<td valign="top"><strong>Urgency</strong></td>
<td valign="top">##ticket.urgency##</td>
</tr>
<tr>
<td valign="top"><strong>Impact</strong></td>
<td valign="top">##ticket.impact##</td>
</tr>
<tr>
<td valign="top"><strong>Ticket Type</strong></td>
<td valign="top">##ticket.type##</td>
</tr>
<tr>
<td valign="top"><strong>Category</strong></td>
<td valign="top">##ticket.category##</td>
</tr>
<tr>
<td valign="top"><strong>Content</strong></td>
<td valign="top">##ticket.content##</td>
</tr>
</tbody>
</table>
<p>&#160;</p>

Offline

#4 2011-08-01 14:58:36

remi
GLPI-DEV
From: Champagne
Registered: 2007-04-28
Posts: 7,127
Website

Re: location and phone not working in alerting

Since 0.80, you can have multiple actor, so author.location most be put in a "foreach authors" loop


Dév. Fedora 29 - PHP 5.6/7.0/7.1/7.2/7.3/7.4 - MariaDB 10.3 - GLPI master
Certifié ITILv3 - RPM pour Fedora, RHEL et CentOS sur https://blog.remirepo.net/

Offline

#5 2011-08-03 15:42:44

sangram.gohil
Member
Registered: 2009-04-09
Posts: 12

Re: location and phone not working in alerting

Hi Remi,

It worked perfectly. Thanks for your help.

Offline

#6 2011-08-03 16:03:02

yllen
GLPI-DEV
From: Sillery (51)
Registered: 2008-01-14
Posts: 15,278

Re: location and phone not working in alerting

OK. I close


CentOS 6.5 - CentOS 7.x
PHP 5.6 - PHP 7.x - MySQL 5.6  - MariaDB 10.2 + APC + oOPcache
GLPI from 0.72 to dev version
Certifiée ITIL (ITV2F, ITILF, ITILOSA)

Offline

Board footer

Powered by FluxBB