B2022-143: Search sometimes defaulting to incorrect procedure set

This commit is contained in:
Kathy Ruffing 2022-12-06 14:00:35 +00:00
parent 299ea47dc1
commit f7f52658b9

View File

@ -1335,7 +1335,9 @@ namespace Volian.Controls.Library
// So now set set it only if we actually load the RO tree // So now set set it only if we actually load the RO tree
// Also, set _MydocVersion to dvilTmp[0] // Also, set _MydocVersion to dvilTmp[0]
_lastRoFstId = rofstId; _lastRoFstId = rofstId;
_MyDocVersion = dvilTmp[0]; // B2022-143: Only reset _MyDocVersion if it is null, it a procedure is in editor, _MyDocVersion is the set for
// the procedure active in the editor:
if (_MyDocVersion == null) _MyDocVersion = dvilTmp[0];
if (_MyDocVersion.DocVersionAssociations != null && _MyDocVersion.DocVersionAssociations.Count > 0) if (_MyDocVersion.DocVersionAssociations != null && _MyDocVersion.DocVersionAssociations.Count > 0)
{ {