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
_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]
Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com