Permalink
Browse files

Bugfix: Added a break condition in order to return valid IronRuntime …

…in case of multiple associations on differnt hirachial levels
  • Loading branch information...
1 parent 28aedb5 commit 086d0e8a095b868bf30b08efa05f2dccdf933dbf @ThorstenHans ThorstenHans committed Jun 6, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/IronSharePoint.Framework/Administration/IronRegistry.cs
@@ -163,6 +163,8 @@ public bool TryResolveRuntime(SPSite site, out RuntimeSetup runtimeSetup)
if (_targetToRuntimeAssociations.TryGetValue(targetId, out associatedId))
{
runtimeSetup = _runtimes.SingleOrDefault(x => x.Id == associatedId);
+ if(runtimeSetup != null)
+ break;
}
}
return runtimeSetup != null;

0 comments on commit 086d0e8

Please sign in to comment.