[rt-devel] recursive merges
Ruslan U. Zakirov
cubic at acronis.ru
Wed Aug 20 13:46:53 EDT 2003
Hello. Jesse.
Here my investigations on problem:
call $self->AddLink in sub MergeInto of Ticket_Overlay.pm reloads $self
:( if this call not "Silent".
Changes at Ticket_Overlay.pm
sub MergeInto {
...snip...
$RT::Logger->debug(
"Ticket id:".$self->Id()." Merge Into ticket id:".$NewTicket->Id());
#make a new link: this ticket is merged into that other ticket.
$self->AddLink( Type => 'MergedInto', Target => $NewTicket->Id());
$RT::Logger->debug(
"Ticket id:".$self->Id()." Merge Into ticket id:".$NewTicket->Id());
...snip...
}
Without Silent flag resulting debug info is:
Ticket id:15279 Merge Into ticket id:15288
(/opt/rt3/lib/RT/Ticket_Overlay.pm:2906)
[Wed Aug 20 17:07:54 2003] [info]:
<rt-3.0.4-15288-141906.18.1953700448829 at foo.com> #15288/141906 - Scrip
19 Notify all about task changes (/opt/rt3/lib/RT/Action/SendEmail.pm:92)
[Wed Aug 20 17:07:54 2003] [info]:
<rt-3.0.4-15288-141906.18.1953700448829 at foo.com> sent To: Cc: Bcc:
bar at foo.com (/opt/rt3/lib/RT/Action/SendEmail.pm:302)
[Wed Aug 20 17:07:54 2003] [debug]: Ticket id:15288 Merge Into ticket
id:15288 (/opt/rt3/lib/RT/Ticket_Overlay.pm:2910)
This is VERY bad behavior to change object that come from outside sub.
:( Our Scrips are common based on standart Actions and Condtions.
I've spend much time on this f*** bug, but now I need to go to home. May
be tomorrow I'll look at it again.
Best regards. Ruslan.
More information about the Rt-devel
mailing list