"No value" sent error message

Using the following is generating the noted error message.

Reasons?

<%ARGS>
$TicketObj
</%ARGS>

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 errorhttp://rt.dkp.com:8080/#raw

Using the following is generating the noted error message.****


Reasons?****


<%ARGS>****

$TicketObj****

</%ARGS>

It says that the component takes TicketObj named argument and as it has no
default value then caller must provide value or it will be runtime error.
See mason’s documentation on setting default values for arguments.





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 http://rt.dkp.com:8080/#raw****
































Best regards, Ruslan.