[rt-users] RT::Attribute::Name Unimplemented (RT 3.4.4)

Vitalii Ostrovskyi vitalii at ostrovskyi.org.ua
Tue Jun 5 09:21:16 EDT 2007


Hello,

My post concerns an old problem:

 > The below error from un-customised rt with populated database:
 >       error:  RT::Attribute::Name Unimplemented in RT::Attributes.
 > (/opt/rt3/lib/RT/Attributes_Overlay.pm line 81)

Fix for the problem is a patch of Record.pm

-# {{{ sub _Init
-
-sub _Init {
-    my $self = shift;
-    $self->_BuildTableAttributes unless ($_TABLE_ATTR->{ref($self)}) 
and (scalar %{$_TABLE_ATTR->{ref($self)}});
-    $self->CurrentUser(@_);
-}
-
-# }}}
+# {{{ sub _Init
+
+sub _Init {
+    my $self = shift;
+    $self->_BuildTableAttributes unless ($_TABLE_ATTR->{ref($self)}) 
and (scalar %{$_TABLE_ATTR->{ref($self)}});
+    $self->CurrentUser(@_);
+}
+
+# }}}

Here I've added check whether $_TABLE_ATTR->{ref($self) is not an empty 
hash. In some situations it can be defined as a hash but might be an 
empty hash and thus _BuildTableAttributes wouldn't be called.

-- 
Sincerely,
Vitalii Ostrovskyi




More information about the rt-users mailing list