From c386153d06cbbb469e7b70a822c1380f53e4e98d Mon Sep 17 00:00:00 2001 From: Rich Date: Mon, 10 Mar 2014 10:16:42 +0000 Subject: [PATCH] Check-out Library Document that is not associated to a specific section. Prior to this fix, the MSWord window would open briefly and the close again, because the Document was not "Checked out". Since there was no ownership record, the next time SessionPing was run, the window would be immediately closed. --- PROMS/Volian.Controls.Library/DisplayTabItem.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PROMS/Volian.Controls.Library/DisplayTabItem.cs b/PROMS/Volian.Controls.Library/DisplayTabItem.cs index dba634b8..628e699d 100644 --- a/PROMS/Volian.Controls.Library/DisplayTabItem.cs +++ b/PROMS/Volian.Controls.Library/DisplayTabItem.cs @@ -159,7 +159,8 @@ namespace Volian.Controls.Library } public DisplayTabItem(IContainer container, DisplayTabControl myDisplayTabControl, DocumentInfo myDocumentInfo, string myKey) { - _MyKey = myKey; + OwnerID = myDisplayTabControl.MySessionInfo.CheckOutItem(myDocumentInfo.DocID, CheckOutType.Document); + _MyKey = myKey; _MyDisplayTabControl = myDisplayTabControl; _MyDocumentInfo = myDocumentInfo; container.Add(this);