fix #2736 - UI not loading correct module instance in scenarios where a module exists on multiple pages
This commit is contained in:
		| @ -58,7 +58,7 @@ else | ||||
| 				} | ||||
| 				if (Name.ToLower() == pane.ToLower()) | ||||
| 				{ | ||||
| 					Module module = PageState.Modules.FirstOrDefault(item => item.ModuleId == PageState.ModuleId); | ||||
| 					Module module = PageState.Modules.FirstOrDefault(item => item.PageId == PageState.Page.PageId && item.ModuleId == PageState.ModuleId); | ||||
| 					if (module != null) | ||||
| 					{ | ||||
| 						var moduleType = Type.GetType(module.ModuleType); | ||||
| @ -107,7 +107,7 @@ else | ||||
|             { | ||||
|                 if (PageState.ModuleId != -1) | ||||
|                 { | ||||
|                     Module module = PageState.Modules.FirstOrDefault(item => item.ModuleId == PageState.ModuleId); | ||||
| 					Module module = PageState.Modules.FirstOrDefault(item => item.PageId == PageState.Page.PageId && item.ModuleId == PageState.ModuleId); | ||||
|                     if (module != null && module.Pane.ToLower() == Name.ToLower()) | ||||
|                     { | ||||
|                         // check if user is authorized to view module | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Shaun Walker
					Shaun Walker