Re: Is Resolved date editable trough WebUI?

Iñaki de Eguía Díez <[email protected]> Thu, 31 Mar 2016 14:53:44 +0000
Newsgroups gmane.comp.bug-tracking.request-tracker.devel
Message-ID <[email protected]>
Ok. I've finally achieved it.

Since I'm using RTIR, the callback to modify is RTIR/Edit.html/AfterProcess=
ing.

Thanks again.

Cheers!

I=F1aki de Egu=EDa D=EDez
Desarrollador - Entornos Abiertos
[email protected]


________________________________________
De: rt-devel <[email protected]> en nombre de I=F1ak=
i de Egu=EDa D=EDez <[email protected]>
Enviado: jueves, 31 de marzo de 2016 10:18
Para: [email protected]
Asunto: Re: [rt-devel] Is Resolved date editable trough WebUI?

Thank you very much, Jim.

I'll look into it.

I=F1aki de Egu=EDa D=EDez
Desarrollador - Entornos Abiertos
[email protected]


________________________________________
De: rt-devel <[email protected]> en nombre de Jim Br=
andt <[email protected]>
Enviado: mi=E9rcoles, 30 de marzo de 2016 19:27
Para: [email protected]
Asunto: Re: [rt-devel] Is Resolved date editable trough WebUI?

Hi I=F1aki,

The code you have puts it on the screen, but you also need to add
something to commit the incoming value to the DB. If you look in
ModifyDates file, you'll see a call to ProcessTicketDates. By default
that only handles the core editable RT dates. You need to add some code
to receive the Resolved argument when submitted and update the DB. In
4.2 there's a callback right before the ProcessTicketDates call, so you
should be able to add the code there.

Jim

On 3/29/16 10:19 AM, I=F1aki de Egu=EDa D=EDez wrote:
> Hello.
>
>
> I'm using RT 4.2.10 and RTIR 3.2. I've developped my own extension and
> I've included the 'Resolved' date at the end of the EditDates.
>
>
>    <tr>
>      <td class=3D"label"><&|/l&>Closed</&>:</td>\
>      <td class=3D"entry">
>          <& /Elements/SelectDate, menu_prefix =3D> 'Resolved', current =
=3D>
> 0 &> (<% $TicketObj->ResolvedObj->AsString %>)
>      </td>
>    </tr>
>
>
>
> The field shows well and a proper date is selectable, but when you try
> to save changes, the view stays on the edit form without commiting anythi=
ng.
>
>
> If I try to do '$ticket->SetResolved( $date->ISO )' from the perl API,
> it works well.
>
>
> Looking at the RT sources I've seen in Ticket.pm a couple of subs called
> '_OverlayAccessible' and '_CoreAccessible'. The former seems to show
> that 'Resolved' is not writable, but the latter shows that it is. Does
> this mean that '_OverlayAccessible' refers to through WebUI and hence it
> is not editable from there?
>
>
> Thanks in advance.
>
>
> Best regards.
>
>
> *I=F1aki de Egu=EDa D=EDez*
> Desarrollador - Entornos Abiertos
> [email protected] <mailto:[email protected]>
>
>
>
>
> En cumplimiento de la Ley Org=E1nica 15/1999, de 13 de diciembre, de
> Protecci=F3n de Datos de Car=E1cter Personal, los datos personales
> reflejados en este documento se incluir=E1n en una base de datos
> informatizada de titularidad de Centro Regional de Servicios Avanzados,
> S.A. Dicha base de datos se encuentra inscrita en el Registro General de
> Protecci=F3n de Datos conforme a lo dispuesto en la legislaci=F3n vigente=
 y
> cumpliendo todas las medidas de seguridad del Real Decreto 994/1999, de
> 11 de junio, de medidas de seguridad de los ficheros automatizados que
> contengan datos de car=E1cter personal. Asimismo, el cliente dispone en
> todo momento de los derechos de informaci=F3n, acceso, rectificaci=F3n,
> cancelaci=F3n y oposici=F3n, que podr=E1 ejercitar por escrito mediante c=
arta
> dirigida al Responsable de Seguridad, en la siguiente direcci=F3n: C/
> L=F3pez Bravo, 1. 09001 Burgos (Espa=F1a).
>
>
>
> ---------
> RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
> * Washington DC - May 23 & 24, 2016
>
---------
RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
* Washington DC - May 23 & 24, 2016
---------
RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
* Washington DC - May 23 & 24, 2016
---------
RT 4.4 and RTIR Training Sessions https://bestpractical.com/training
* Washington DC - May 23 & 24, 2016