mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-11-24 16:53:10 +08:00
committed by
Sébastien Ros
parent
9beedf8b19
commit
c7f9cddb76
@@ -63,8 +63,14 @@ namespace Orchard.ContentTypes.Services {
|
||||
if (!String.IsNullOrEmpty(customPlacement.Placement.Position)) {
|
||||
location = String.Concat(location, ":", customPlacement.Placement.Position);
|
||||
}
|
||||
|
||||
return new PlacementInfo { Location = location };
|
||||
// clone the identified Placement.info into a new one in order to keep original informations like Wrappers and Alternates
|
||||
var originalPlacementInfo = placement(ctx);
|
||||
return new PlacementInfo {
|
||||
Location = location,
|
||||
Alternates = originalPlacementInfo.Alternates,
|
||||
ShapeType = originalPlacementInfo.ShapeType,
|
||||
Wrappers = originalPlacementInfo.Wrappers
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -75,4 +81,4 @@ namespace Orchard.ContentTypes.Services {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user