Error when creating ticket

Version: 3.4.1

When I try create new ticket via the web GUI, I get the following error:

error: Can’t call method “Id” on an undefined value at
/opt/rt/3.4.1/lib/RT/Interface/ line 1105.

1100: # Build up a list of objects that we want to work with
1101: my %custom_fields_to_mod;
1102: foreach my $arg ( keys %$ARGSRef ) {
1103: if ( $arg =~ /^Object-([\w:]+)-(\d*)-CustomField-(\d+)-/ ) {
1104: # For each of those objects, find out what custom fields we want
to work with.
1105: $custom_fields_to_mod{$1}{$2 || $args{‘Object’}->Id}{$3} = 1;
1106: }
1107: }

code stack: /opt/rt/3.4.1/lib/RT/Interface/

The error occured after I implemented the callBack based solution for
editing custom fields as described on the wiki

rnulf Nielsen
Vitusapotek AS