r7284 - dumbhippo/trunk/server/src/com/dumbhippo/server/blocks
- From: commits mugshot org
- To: online-desktop-list gnome org
- Subject: r7284 - dumbhippo/trunk/server/src/com/dumbhippo/server/blocks
- Date: Mon, 4 Feb 2008 10:00:09 -0600 (CST)
Author: otaylor
Date: 2008-02-04 10:00:09 -0600 (Mon, 04 Feb 2008)
New Revision: 7284
Modified:
dumbhippo/trunk/server/src/com/dumbhippo/server/blocks/GroupMemberBlockHandlerBean.java
Log:
Fix a missing session initialization
Modified: dumbhippo/trunk/server/src/com/dumbhippo/server/blocks/GroupMemberBlockHandlerBean.java
===================================================================
--- dumbhippo/trunk/server/src/com/dumbhippo/server/blocks/GroupMemberBlockHandlerBean.java 2008-02-04 15:56:52 UTC (rev 7283)
+++ dumbhippo/trunk/server/src/com/dumbhippo/server/blocks/GroupMemberBlockHandlerBean.java 2008-02-04 16:00:09 UTC (rev 7284)
@@ -20,6 +20,7 @@
import com.dumbhippo.server.dm.GroupMemberBlockDMO;
import com.dumbhippo.server.views.GroupView;
import com.dumbhippo.server.views.PersonView;
+import com.dumbhippo.server.views.SystemViewpoint;
import com.dumbhippo.server.views.UserViewpoint;
import com.dumbhippo.server.views.Viewpoint;
import com.dumbhippo.tx.RetryException;
@@ -114,6 +115,8 @@
// Do async after commit since we need the retry
TxUtils.runInTransactionOnCommit(new TxRunnable() {
public void run() throws RetryException {
+ DataService.getModel().initializeReadWriteSession(SystemViewpoint.getInstance());
+
GroupMember attached = em.find(GroupMember.class, memberId);
// Blocks only exist for group members which correspond to accounts in the
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]