Restoring placement.info source file in shape tracing

--HG--
branch : dev
This commit is contained in:
Sebastien Ros
2011-02-24 17:04:26 -08:00
parent 05be540f67
commit 6ca43296d9
2 changed files with 3 additions and 1 deletions

View File

@@ -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

View File

@@ -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) {