Fixed bug addes on pull request

This commit is contained in:
Sergio Navarro
2015-06-28 01:11:06 +02:00
parent 24ee246a34
commit 0f48019321

View File

@@ -110,7 +110,6 @@ namespace Orchard.DisplayManagement.Descriptors.ShapePlacementStrategy {
private void GetShapeType(PlacementShapeLocation shapeLocation, out string shapeType, out string differentiator) {
differentiator = "";
shapeType = shapeLocation.ShapeType;
var dashIndex = shapeType.LastIndexOf('-');
var dashIndex = shapeType.LastIndexOf("__");
if (dashIndex > 0 && dashIndex < shapeType.Length - 2) {
differentiator = shapeType.Substring(dashIndex + 2);