[Rt-devel] [Fwd: [rt-users] Edit CustomFields On Update]
Andy Moran
andy at wildbrain.com
Wed Oct 12 20:25:20 EDT 2005
I'm going to try this again since I didn't get any bites on the rt-users
list, maybe a developer can help me out.
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.
context:
...
1131:
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
/usr/local/rt3/lib/RT/Interface/Web.pm:1124
/usr/local/rt3/local/html/Callbacks/CustomFields/Ticket/Display.html/BeforeDisplay:3
/usr/local/rt3/share/html/Elements/Callback:83
/usr/local/rt3/share/html/Ticket/Display.html:152
/usr/local/rt3/share/html/Ticket/Create.html:289
/usr/local/rt3/share/html/autohandler:215
raw error
Does anyone know if this Contribuation does not work in 3.4.4? If this
some mistake on my end?
--Andy
More information about the Rt-devel
mailing list