[Rt-commit] r8040 - rt/branches/3.7-EXPERIMENTAL-TUNIS/lib/RT
ruz at bestpractical.com
ruz at bestpractical.com
Thu Jun 28 19:38:18 EDT 2007
Author: ruz
Date: Thu Jun 28 19:38:17 2007
New Revision: 8040
Modified:
rt/branches/3.7-EXPERIMENTAL-TUNIS/lib/RT/Ticket_Overlay.pm
Log:
* if we're not deferring owner creation then add owner to its group
immediatelly as soon as group's been created or some other like
adding AdminCcs may fail.
Modified: rt/branches/3.7-EXPERIMENTAL-TUNIS/lib/RT/Ticket_Overlay.pm
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL-TUNIS/lib/RT/Ticket_Overlay.pm (original)
+++ rt/branches/3.7-EXPERIMENTAL-TUNIS/lib/RT/Ticket_Overlay.pm Thu Jun 28 19:38:17 2007
@@ -522,6 +522,13 @@
);
}
+ # Set the owner in the Groups table
+ # We denormalize it into the Ticket table too because doing otherwise would
+ # kill performance, bigtime. It gets kept in lockstep thanks to the magic of transactionalization
+ $self->OwnerGroup->_AddMember(
+ PrincipalId => $Owner->PrincipalId,
+ InsideTransaction => 1
+ ) unless $DeferOwner;
# {{{ Deal with setting up watchers
More information about the Rt-commit
mailing list