[rt-users] Looks like you might have to hack this one (Bart)

Raymond Corbett Raymond.Corbett at arcproductions.com
Tue Mar 26 10:05:37 EDT 2013


Getting closer Bart:

As per:

Looks like you might have to hack this one :S

The callback you found is part of this line:

<form
    method="post"
    action="<%RT->Config->Get('WebPath')%>/index.html"
% $m->callback(CallbackName => 'InFormElement');
>


I am getting closer.  Looks promising.   However when I attempt to use code from Ruslan to see where I am at, I get an immediate error with a complaint about $TicketObj

Error returned:   (one line in read)

error:    no value sent for required parameter 'TicketObj'

context:
...
91:          my $type = $entry->{type};
92:          my $name = $entry->{'name'};
93:          if ( $type eq 'component' ) {
94:          # XXX: security check etc.
95:          $m->comp( $name, %{ $entry->{arguments} || {} } );
96:          } elsif ( $type eq 'system' ) {
97:          $m->comp( '/Elements/ShowSearch', Name => $name, Override => { Rows => $Rows } );
98:          } elsif ( $type eq 'saved' ) {
99:          $m->comp( '/Elements/ShowSearch', SavedSearch => $name, Override => { Rows => $Rows }, IgnoreMissing => 1 );
...
code stack:         /n/software/linux/servers/rt4/share/html/Elements/MyRT:95
/n/software/linux/servers/rt4/share/html/index.html:78
/opt/rt4/sbin/../lib/RT/Interface/Web.pm:634
/opt/rt4/sbin/../lib/RT/Interface/Web.pm:335
/n/software/linux/servers/rt4/share/html/autohandler:53
raw error
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20130326/18119127/attachment.html>


More information about the rt-users mailing list