[rt-devel] Fwd: Problem with callbacks in RT 4.0.6

Paul Tomblin ptomblin at xcski.com
Sat Sep 1 14:09:09 EDT 2012


I'm attaching a patch for the problem I described in the below email.
My first patch, please let me know if I got anything wrong.


---------- Forwarded message ----------
From: Paul Tomblin <ptomblin at xcski.com>
Date: Tue, Aug 28, 2012 at 9:05 PM
Subject: Problem with callbacks in RT 4.0.6
To: rt-users at lists.bestpractical.com


I'm trying to make it so when a user logs out of RT, they get taken
back to my page when they log back in.  But I'm having problems with
the callback in /NoAuth/Logout.html, because it seems like the
"Default" callback is called twice, once in <%init> and once in the
main, but with different arguments:

In the <%init> section, at line 74, we find:
$m->callback( %ARGS, URL => \$URL );
and in the main section, at line 62, we find:
% $m->callback( %ARGS );

So if I make a Default callback, the first time it gets called, $URL
is a reference to the scalar, but the second time it is just the
scalar.

<%INIT>
$$URL = "/myapp/change_request.html";
</%INIT>
<%ARGS>
$URL
</%ARGS>

I feel like one or both of these callbacks should probably be given a
name so we can distinguish them.


-- 
http://www.linkedin.com/in/paultomblin
http://careers.stackoverflow.com/ptomblin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-a-name-to-one-of-the-two-Default-callbacks-in-Lo.patch
Type: application/octet-stream
Size: 1108 bytes
Desc: not available
URL: <http://lists.bestpractical.com/pipermail/rt-devel/attachments/20120901/04b062f1/attachment.obj>


More information about the rt-devel mailing list