[rt-devel] lib/RT/Ticket.pm introspection callback for Kanban 4.2.12 rt-extension-kanban

Joachim Schiele js at lastlog.de
Wed Mar 2 08:41:31 EST 2016


i understand this like that:
complete functions can be overriden like this but not single sections of
a function as in a patch.

if my understanding is correct, then the method you proposed would
require us to supply 3 Ticket.pm functions for each individual rt
release as these implementations might change over time.

correct?

On 02.03.2016 14:19, Christian Loos wrote:
> Hi Joachim,
> 
> actually this isn't necessary.
> You can overwrite the Create method and call inside your Create method
> the original Create method.
> 
> Have a look at this:
> https://github.com/bestpractical/rt-extension-repliestoresolved/blob/master/lib/RT/Extension/RepliesToResolved.pm#L102-L146
> 
> Chris
> 
> Am 02.03.2016 um 13:52 schrieb Joachim Schiele:
>> sub RT_WebSocket_Callback {
>>   # with no implementation
>> }
>>
>> sub Create {
>> my $self = shift;
>>
>> my %args = (
>> id => undef,
>> ... many more values ...
>> _RecordTransaction => 1,
>> DryRun => 0,
>> @_
>> );
>> RT_WebSocket_Callback( with a array of IDs )
> 
> ---------
> RT 4.4 and RTIR Training Sessions (http://bestpractical.com/services/training.html)
> * Hamburg Germany - March 14 & 15, 2016
> * Washington DC - May 23 & 24, 2016
> 




More information about the rt-devel mailing list