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/Web.pm line 1105.
context:

1099:
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/Web.pm:1103
/opt/rt/3.4.1/lib/RT/Interface/Web.pm:1092
/opt/rt/3.4.1/local/html/Callbacks/CustomFields/Ticket/Display.html/BeforeDisplay:3
/opt/rt/3.4.1/share/html/Elements/Callback:70
/opt/rt/3.4.1/share/html/Ticket/Display.html:148
/opt/rt/3.4.1/share/html/Ticket/Create.html:289
/opt/rt/3.4.1/share/html/autohandler:215

The error occured after I implemented the callBack based solution for
editing custom fields as described on the wiki
(http://wiki.bestpractical.com/index.cgi?EditCustomFieldsOnUpdate)

rnulf Nielsen
Vitusapotek AS