mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
@@ -311,8 +311,8 @@ namespace Orchard.Projections.Drivers {
|
|||||||
int layoutIndexValue;
|
int layoutIndexValue;
|
||||||
if (layoutIndex != null
|
if (layoutIndex != null
|
||||||
&& Int32.TryParse(layoutIndex, out layoutIndexValue)
|
&& Int32.TryParse(layoutIndex, out layoutIndexValue)
|
||||||
&& layoutIndexValue != -1
|
&& layoutIndexValue >= 0
|
||||||
&& part.Record.QueryPartRecord.Layouts.Count >= layoutIndexValue + 1)
|
&& part.Record.QueryPartRecord.Layouts.Count > layoutIndexValue)
|
||||||
{
|
{
|
||||||
part.Record.LayoutRecord = part.Record.QueryPartRecord.Layouts[Int32.Parse(layoutIndex)];
|
part.Record.LayoutRecord = part.Record.QueryPartRecord.Layouts[Int32.Parse(layoutIndex)];
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user