mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Restoring placement.info source file in shape tracing
--HG-- branch : dev
This commit is contained in:
@@ -116,9 +116,11 @@ namespace Orchard.ContentManagement {
|
||||
|
||||
var placement = descriptor.Placement(placementContext);
|
||||
if(placement != null) {
|
||||
placement.Source = placementContext.Source;
|
||||
return placement;
|
||||
}
|
||||
}
|
||||
|
||||
return new PlacementInfo {
|
||||
Location = defaultLocation,
|
||||
Source = String.Empty
|
||||
|
||||
@@ -68,7 +68,7 @@ namespace Orchard.DisplayManagement.Descriptors.ShapePlacementStrategy {
|
||||
predicate = matches.SelectMany(match => match.Terms).Aggregate(predicate, BuildPredicate);
|
||||
}
|
||||
|
||||
var placement = new PlacementInfo { };
|
||||
var placement = new PlacementInfo();
|
||||
|
||||
var segments = shapeLocation.Location.Split(';').Select(s => s.Trim());
|
||||
foreach (var segment in segments) {
|
||||
|
||||
Reference in New Issue
Block a user