Re: alternative to edit comments
Matt Zagrabelny <[email protected]> Tue, 7 Jul 2015 15:22:01 -0500
| Newsgroups | gmane.comp.bug-tracking.request-tracker.devel |
|---|---|
| Message-ID | <CAOLfK3WtY828PJ6T0OzztSqS0CpG1Fx73Qkt4oZEaxE_TrbZ6Q@mail.gmail.com> |
On Tue, Jul 7, 2015 at 8:01 AM, ARBEZ Christophe <[email protected] > wrote: > Hi all, > > I know it is not possible to edit some message in RT. So, I would like how > you do for a comment if you make a mistake in the content or the time > worked ? > You can update the ticket time after creating your txn. Perhaps that will help? > For example, in a project or intern tickets in your company. > Is there an alternative to edit transactions like comments? > You could create an "Edit Content" link and add it to the txn links and from there create a custom form. You'll need something like: # {{{ # paper-trail auditor backdoor :) # Needed to change the txn's time taken via EditBilling.html package RT::Transaction; use strict; no warnings qw(redefine); sub _Set { my $self = shift; $self->SUPER::_Set(@_); } # }}} added to a loaded modules source. We do this for our billing stuff. We have a module named RT-Site-UMN-Duluth-EFS which the above code snippet lives in and a form named EditBilling.html which does the front-end work. Cheers, -m