[rt-devel] Fwd: Problem with callbacks in RT 4.0.6
Kevin Falcone
falcone at bestpractical.com
Fri Oct 19 11:40:44 EDT 2012
On Sat, Sep 01, 2012 at 02:09:09PM -0400, Paul Tomblin wrote:
> 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.
I finally remembered to run git am and push this, sorry for the delay,
it's been sitting, approved, in one of my RT repos for a while.
-kevin
> ---------- 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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <http://lists.bestpractical.com/pipermail/rt-devel/attachments/20121019/41636fb4/attachment.pgp>
More information about the rt-devel
mailing list