Problems with disabled custom fields

Using RT 3.41, I’ve encountered a couple of problems when disabling a
custom field. I don’t see any references on the Wiki, and
unfortunately the mailing list isn’t very easily searchable… so
hopefully this isn’t a FAQ or something…

I’m in test mode, just playing right now. I created a new custom
field (select one of a list type) and assigned it to a queue. I then
disabled the custom field.

First problem, the custom fields list doesn’t have a checkbox to show
disabled custom fields, so I have no way to re-enable the custom field.

Second problem, the disabled custom field still shows as active when
I view the queue that used it, and I am unable to remove it from the
queue (deselect the check box, submit, and the page refreshes with
the field still listed, and the checkbox re-checked).

Does this sound familar to anyone?
Matt Pounsett

PGP.sig (186 Bytes)

Second problem, the disabled custom field still shows as active when
I view the queue that used it, and I am unable to remove it from the
queue (deselect the check box, submit, and the page refreshes with
the field still listed, and the checkbox re-checked).

=== ObjectCustomFields_Overlay.pm
— ObjectCustomFields_Overlay.pm (revision 15828)
+++ ObjectCustomFields_Overlay.pm (revision 15829)
@@ -63,12 +63,14 @@
sub LimitToLookupType {
my $self = shift;
my $lookup = shift;

  • my $cfs = $self->NewAlias(‘CustomFields’);
  • unless ($self->{’_cfs_alias’}) {
  •    $self->{'_cfs_alias'}  = $self->NewAlias('CustomFields');
    
  • }
    $self->Join( ALIAS1 => ‘main’,
    FIELD1 => ‘CustomField’,
  •            ALIAS2 => $cfs,
    
  •            ALIAS2 => $self->{'_cfs_alias'},
               FIELD2 => 'id' );
    
  • $self->Limit( ALIAS => $cfs,
  • $self->Limit( ALIAS => $self->{'cfs_alias’},
    FIELD => ‘LookupType’,
    OPERATOR => ‘=’,
    VALUE => $lookup );
    @@ -97,4 +99,15 @@
    map { $
    ->CustomFieldObj } @{$self->ItemsArrayRef};
    }

+sub _DoSearch {

  • my $self = shift;
  • if ($self->{’_cfs_alias’}) {
  • $self->Limit( ALIAS => $self->{’_cfs_alias’},
  •             FIELD           => 'Disabled',
    
  •             OPERATOR        => '!=',
    
  •             VALUE           =>  1);
    
  • }
  • $self->SUPER::_DoSearch()
    +}
    1;

First problem, the custom fields list doesn’t have a checkbox to show
disabled custom fields, so I have no way to re-enable the custom field.

A patch for the UI bug is welcome.

Second problem, the disabled custom field still shows as active when
I view the queue that used it, and I am unable to remove it from the
queue (deselect the check box, submit, and the page refreshes with
the field still listed, and the checkbox re-checked).

I’m actually right in the middle of fixing this. A bugfix should be
committed back to subversion this afternoon.

First problem, the custom fields list doesn’t have a checkbox to show
disabled custom fields, so I have no way to re-enable the custom
field.

A patch for the UI bug is welcome.

Cool. As long as I know it’s not just something I’ve screwed up
somewhere. :slight_smile: I’ll take a poke at patching the UI Monday, when I’ve
got time to find my way around first.

Second problem, the disabled custom field still shows as active when
I view the queue that used it, and I am unable to remove it from the
queue (deselect the check box, submit, and the page refreshes with
the field still listed, and the checkbox re-checked).

I’m actually right in the middle of fixing this. A bugfix should be
committed back to subversion this afternoon.

got the patch you emailed. Thanks!

Matt