fix route constructor

This commit is contained in:
sbwalker 2024-02-20 14:15:38 -05:00
parent ab09810bef
commit f3f223fa22
2 changed files with 2 additions and 3 deletions

View File

@ -67,7 +67,7 @@ else
// pane matches current pane // pane matches current pane
if (Name.ToLower() == pane.ToLower()) if (Name.ToLower() == pane.ToLower())
{ {
if (module.ModuleId == PageState.ModuleId && PageState.Action != Constants.DefaultAction) if (PageState.ModuleId == module.ModuleId && PageState.Action != Constants.DefaultAction)
{ {
var moduleType = Type.GetType(module.ModuleType); var moduleType = Type.GetType(module.ModuleType);
if (moduleType != null) if (moduleType != null)

View File

@ -50,7 +50,6 @@ namespace Oqtane.Models
if (pos != -1) if (pos != -1)
{ {
ModuleId = PagePath.Substring(pos + 3); ModuleId = PagePath.Substring(pos + 3);
ModuleId = (int.TryParse(ModuleId, out _)) ? ModuleId : "-1";
PagePath = PagePath.Substring(0, pos); PagePath = PagePath.Substring(0, pos);
} }
if (ModuleId.Length != 0) if (ModuleId.Length != 0)