[rt-users] Edit CustomFields On Update

Andy Moran andy at wildbrain.com
Wed Oct 5 20:49:39 EDT 2005

I installed the "CallBacks" solution
(http://wiki.bestpractical.com/index.cgi?EditCustomFieldsOnUpdate) for
editing Custom Fields on Updating.. the good news is that it worked!
When I "reply" or "resolve", i see the custom fields.

The bad news is that it broke creating a new ticket from the interface..
I get a perl error after I click submit:

System error
error:  	Can't call method "Id" on an undefined value at
/usr/local/rt3/lib/RT/Interface/Web.pm line 1137.
1132:  	# Build up a list of objects that we want to work with
1133:  	my %custom_fields_to_mod;
1134:  	foreach my $arg ( keys %$ARGSRef ) {
1135:  	if ( $arg =~ /^Object-([\w:]+)-(\d*)-CustomField-(\d+)-/ ) {
1136:  	# For each of those objects, find out what custom fields we want
to work with.
1137:  	$custom_fields_to_mod{$1}{$2 || $args{'Object'}->Id}{$3} = 1;
1138:  	}
1139:  	}
code stack:  	/usr/local/rt3/lib/RT/Interface/Web.pm:1135
raw error

Does anyone know if this Contribuation does not work in 3.4.4?  If this
some mistake on my end?


More information about the rt-users mailing list