[Rt-commit] rt branch, 4.0/add-with-disabled-column, created. rt-4.0.8-347-g0d3ccb9

Todd Wade todd at bestpractical.com
Tue Jan 8 12:02:36 EST 2013


The branch, 4.0/add-with-disabled-column has been created
        at  0d3ccb908b4256ba43535074e27705dd5debf4aa (commit)

- Log -----------------------------------------------------------------
commit 0d3ccb908b4256ba43535074e27705dd5debf4aa
Author: Todd Wade <todd at bestpractical.com>
Date:   Tue Jan 8 11:44:27 2013 -0500

    add with_disabled_column => 1 in _Init to RT::Classes
    
    The table this class represents has a disabled column but the collection
    was missing a with_disabled_column flag in _Init.
    
    See [issues #20766]

diff --git a/lib/RT/Classes.pm b/lib/RT/Classes.pm
index 37dc411..6d53ea2 100644
--- a/lib/RT/Classes.pm
+++ b/lib/RT/Classes.pm
@@ -54,6 +54,11 @@ use base 'RT::SearchBuilder';
 
 sub Table {'Classes'}
 
+sub _Init {
+  my $self = shift;
+  $self->{'with_disabled_column'} = 1;
+  return ($self->SUPER::_Init(@_));
+}
 
 =head2 Next
 

-----------------------------------------------------------------------


More information about the Rt-commit mailing list