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 2012-11-12 10:04:43

ciruvera
Member
Registered: 2012-11-12
Posts: 4

Attachments to tickets

I modified the file to insert heldesk.php incidents without login. I can not attach documents to incidents.

<div id="contenuform">

<form method="post" name="helpdeskform" action="tracking.injector.php">
   <input type="hidden" name="_type" value="Helpdesk" />
   <input type="hidden" name="_auto_import" value="1" />
      <h2 align='center'>FORMULARIO DE SOLICITUD DE SOPORTE TECNICO</h2>

   <fieldset>
      <legend>El problema debe ser resuelto: </legend>

Selecciona el nivel de URGENCIA:
 <select name="urgency">
         <option value="5">Muy alto</option>
         <option value="4">Alto</option>
         <option value="3" selected='selected'>Medio</option>
         <option value="2">Bajo</option>
         <option value="1">Muy bajo</option>
      </select>
   </fieldset>

 <fieldset>
      <legend>Elije GRUPO:</legend>

      <select id='dropdown__groups_id_requester1962201019' name='_groups_id_requester'
             size='1'><option value='0'>-----</option><optgroup label="Entidad RaÃz"><option value='1' title="AYUNTAMENTO - ">AYUNTAMIENTO</option><option valu
e='2' title="BAYRA - ">BAYRA</option><option value='4' title="BIBLIOTECA - ">BIBLIOTECA</option><option value='5' title="CATASTRO - ">CATASTRO</option><option
value='6' title="CIM - ">CIM</option><option value='7' title="CONVENTO - ">CONVENTO</option><option value='14' title="DEPORTES - ">DEPORTES</option><option val
ue='8' title="DROGODEPENDENCIA - ">DROGODEPENDENCIA</option><option value='9' title="ESCUELA DE MUSICA - ">ESCUELA DE MUSICA</option><option value='10' title="
INEM - ">INEM</option><option value='15' title="INMIGRACION - ">INMIGRACION</option><option value='11' title="OTROS - ">OTROS</option><option value='12' title=
"POLICIA - ">POLICIA</option><option value='13' title="RECAUDACION - ">RECAUDACION</option></optgroup></select>

</fieldset>


 <fieldset>
      <legend>Elije la categor&iacute;a:</legend>
      Categor&iacute;a:
<select id='dropdown_ticketcategories_id574784593' name='ticketcategories_id'
             size='1'><option class='tree' value='0'>-----</option><optgroup label="Entidad RaÃz"><option value='8'  lass='treeroot' title="ABSIS - ">&nbsp;&nb
sp;&nbsp;ABSIS</option><option value='1'  class='treeroot' title="HARDWARE - ">&nbsp;&nbsp;&nbsp;HARDWARE</option><option value='7'  class='treeroot' title="MA
NTENIMIENTO TELEFONICA - ">&nbsp;&nbsp;&nbsp;MANTENIMIENTO TELEFONICA</option><option value='6'  class='treeroot' title="MATERIAL - ">&nbsp;&nbsp;&nbsp;MATERIA
L</option><option value='4'  class='treeroot' title="OTRAS - ">&nbsp;&nbsp;&nbsp;OTRAS</option><option value='5'  class='treeroot' title="REDES - ">&nbsp;&nbsp
;&nbsp;REDES</option><option value='2'  class='treeroot' title="SOFTWARE - ">&nbsp;&nbsp;&nbsp;SOFTWARE</option><option value='3'  class='treeroot' title="TELE
FONIA - ">&nbsp;&nbsp;&nbsp;TELEFONIA</option></optgroup></select>
   </fieldset>





     <fieldset>
           <legend>Seguimiento:</legend>

<input type='hidden' id='dropdown__users_id_requester1288953071' name='_users_id_requester' value='3'>
Seguimiento por correo&nbsp;:&nbsp;<select name='_users_id_requester_notif[use_notification]' id='dropdown__users_id_requester_notif[use_notification]165843331
'><option value='1'>SÃ</option></select><br>Correo electrónico&nbsp;:&nbsp;  <input type='text' size='25' name='_users_id_requester_notif[alternative_email]'
            value=''>

</fieldset>



<fieldset>
         <legend>Asignada al t&eacute;cnico:</legend>
<select id='dropdown__users_id_assign1872293723' name='_users_id_assign'><option selected value='6'>ANTONIO M. RAMOS FLORES</option></select>

   </fieldset>

   <fieldset>
      <legend>Describe el problema:</legend>
      <p>TÃtulo:
        <input type='text' name="name" size='75'>
    </p>
      <p>Descripción:<br />
        <textarea name="content" cols="60" rows="20"></textarea>
           </p>
   </fieldset>


     <fieldset>
  <legend>Fichero (100 MB máximos)&nbsp;:</legend>
<div id='uploadfiles'><input type='file' name='filename[]' value='' size='60'></div>

</fieldset>

<table width="100%" border="0" cellpadding="20">
  <tr>
    <td align="center"><input type="submit" value="ENVIAR" name= 'add' /> </td>
    <td align="center">  <input type="reset" name="nombre" value="BORRAR"> </td>
    <td align="center"><input type="button" name="atras" value="ATRAS" onclick="javascript:document.location='http://10.200.1.249/glpi/front/selector.php'"></t
d>
  </tr>
</table>


<?php
// Close form for CSRF
define('GLPI_ROOT', '..');
include (GLPI_ROOT . "/inc/includes.php");
Html::closeForm();

?>

Everything works fine unless the file

Offline

#2 2012-11-12 23:01:28

danh
Member
From: Chicago, USA
Registered: 2012-03-08
Posts: 546
Website

Re: Attachments to tickets

I guess I would ask why the login was such an issue?
Did you try the mailgate feature where you can just email a ticket in?


Thanks,
Dan

Offline

#3 2012-11-12 23:18:31

ciruvera
Member
Registered: 2012-11-12
Posts: 4

Re: Attachments to tickets

Sorry for my English.
I'm using the Google translator.
I need to open tickets without login.
From intranet users access to open tickets helpdesk.php without login. These events are open to the user "postOnly". Everything works fine but can not add attachments.

I will activate the opening of tickets through the mail because I think you're saying that is related.

Thanks for answering my post.
Tomorrow I'll tell you.

Greetings.

Offline

#4 2012-11-13 09:03:28

ciruvera
Member
Registered: 2012-11-12
Posts: 4

Re: Attachments to tickets

The opening incidents with attachments through e-mail works.

However I can not open attachments through issues with the helpdesk.php

Offline

#5 2012-11-13 16:06:48

danh
Member
From: Chicago, USA
Registered: 2012-03-08
Posts: 546
Website

Re: Attachments to tickets

It must be something you modified then.

I'm not sure what the best work around might by for you.
- Users with no password?
- Have users submit through email only?


Thanks,
Dan

Offline

#6 2012-11-13 19:08:16

ciruvera
Member
Registered: 2012-11-12
Posts: 4

Re: Attachments to tickets

The helpdesk.php access is through a php include from intranet.company.com
The issues that are opened from helpdesk.php shown to the user postOnly.
The issues that are opened from helpdesk.php no password
Users can open incidents from the email (attachments work)
Users can open incidents from helpdesk (attachments do not work)

My question is how I can modify to work helpdesk.php attachments?

I hope I've explained well
regards

Offline

Board footer

Powered by FluxBB