fix route constructor
This commit is contained in:
parent
ab09810bef
commit
f3f223fa22
|
@ -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)
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user