[Rt-commit] r9267 - rt/branches/3.7-RTIR-RELENG/lib
ruz at bestpractical.com
ruz at bestpractical.com
Wed Oct 10 21:28:46 EDT 2007
Author: ruz
Date: Wed Oct 10 21:28:43 2007
New Revision: 9267
Modified:
rt/branches/3.7-RTIR-RELENG/lib/RT.pm.in
Log:
* Build attributes of major tables to avoid failures on cold servers when
a record object is loaded from a session(no call to new) and its attributes
arn't built
Modified: rt/branches/3.7-RTIR-RELENG/lib/RT.pm.in
==============================================================================
--- rt/branches/3.7-RTIR-RELENG/lib/RT.pm.in (original)
+++ rt/branches/3.7-RTIR-RELENG/lib/RT.pm.in Wed Oct 10 21:28:43 2007
@@ -374,7 +374,9 @@
sub InitClasses {
require RT::Tickets;
require RT::Transactions;
+ require RT::Attachments;
require RT::Users;
+ require RT::Principals;
require RT::CurrentUser;
require RT::Templates;
require RT::Queues;
@@ -387,6 +389,26 @@
require RT::CustomFieldValues;
require RT::ObjectCustomFields;
require RT::ObjectCustomFieldValues;
+ require RT::Attributes;
+
+ $_->_BuildTableAttributes foreach qw(
+ RT::Ticket
+ RT::Transaction
+ RT::Attachment
+ RT::User
+ RT::Template
+ RT::Queue
+ RT::ScripAction
+ RT::ScripCondition
+ RT::Scrip
+ RT::Group
+ RT::GroupMember
+ RT::CustomField
+ RT::CustomFieldValue
+ RT::ObjectCustomField
+ RT::ObjectCustomFieldValue
+ RT::Attribute
+ );
}
=head2 InitSystemObjects
More information about the Rt-commit
mailing list