Bulk Abandon - 3.7.13

Has anyone come across this error when trying to do a BulkAbandon on a
group of [RTIR] tickets:

System error
error: Can’t call method “CurrentUser” on an undefined value at /opt/
rt3/share/html/RTIR/Elements/UpdateData line 71.
context:

67:
68: if ( $type eq ‘Incident’ ) {
69: push @parents, $Ticket->id;
70: } else {
71: my $tickets = RT::Tickets->new( $Ticket->CurrentUser() );
72: $tickets->FromSQL( "Queue = ‘Incidents’ AND HasMember = ".
$Ticket->id );
73: while ( my $parent = $tickets->Next ) {
74: push @parents, $parent->id;
75: }

code stack: /opt/rt3/share/html/RTIR/Elements/UpdateData:71
/opt/rt3/share/html/RTIR/Incident/Elements/ReplyForm:43
/opt/rt3/share/html/Widgets/TitleBox:51
/opt/rt3/share/html/RTIR/Incident/Elements/ReplyForm:47
/opt/rt3/share/html/RTIR/Incident/BulkAbandon.html:67
/opt/rt3/share/html/autohandler:298

The only syslog errors I have been seeing are:

RT: Use of uninitialized value in pattern match (m//) at /opt/rt3/
share/html/Callbacks/RTIR/Elements/SelectOwner/UpdateObjectList line
13. (/opt/rt3/share/html/Callbacks/RTIR/Elements/SelectOwner/
UpdateObjectList:13)

RT: Use of uninitialized value in join or string at /opt/rt3/share/
html/RTIR/Incident/Elements/ReplyForm line 39. (/opt/rt3/share/html/
RTIR/Incident/Elements/ReplyForm:39)

RT: Use of uninitialized value in string eq at /opt/rt3/share/html/
RTIR/Elements/UpdateData line 68. (/opt/rt3/share/html/RTIR/Elements/
UpdateData:68)

it seems like $Ticket is not being passed to the UpdateData form, but
I can’t seem to figure out why. I’m currently drilling down through
the html file into UpdateData, just wanted to throw this out there to
see if i’m chasing my tail.

Wes Young
Network Security Analyst
CIT - University at Buffalo
| my OpenID: | http://tinyurl.com/2zu2d3 |

Figured I’d follow up with my own fix here (if only so I can search on
it later… :))

adding:

return unless($Ticket) to UpdateData: ~65

seems to do a quick and dirty sanity check dropping the error when
you’re not doing the action (ie: just viewing the bulkabandon page).

Wes Young
Network Security Analyst
CIT - University at Buffalo
| my OpenID: | http://tinyurl.com/2zu2d3 |

We’ve fixed that problem in new versions.On Thu, Mar 6, 2008 at 7:36 PM, Wes Young wcyoung@buffalo.edu wrote:

Figured I’d follow up with my own fix here (if only so I can search on
it later… :))

adding:

return unless($Ticket) to UpdateData: ~65

seems to do a quick and dirty sanity check dropping the error when
you’re not doing the action (ie: just viewing the bulkabandon page).


Wes Young
Network Security Analyst
CIT - University at Buffalo

| my OpenID: | http://tinyurl.com/2zu2d3 |


List info: The rt-devel Archives

Best regards, Ruslan.

Yea, I was flipping through the cvs … (err svn) tree’s and saw.
Kinda sparked some other thought which lead to the sanity check.

Thanks! :-)On Mar 7, 2008, at 4:08 AM, Ruslan Zakirov wrote:

We’ve fixed that problem in new versions.

On Thu, Mar 6, 2008 at 7:36 PM, Wes Young wcyoung@buffalo.edu wrote:

Figured I’d follow up with my own fix here (if only so I can search
on
it later… :))

adding:

return unless($Ticket) to UpdateData: ~65

seems to do a quick and dirty sanity check dropping the error when
you’re not doing the action (ie: just viewing the bulkabandon page).


Wes Young
Network Security Analyst
CIT - University at Buffalo

| my OpenID: | http://tinyurl.com/2zu2d3 |


List info: The rt-devel Archives


Best regards, Ruslan.

Wes Young
Network Security Analyst
CIT - University at Buffalo
| my OpenID: | http://tinyurl.com/2zu2d3 |