Skip to content

Commit 04bd4af

Browse files
committed
PB-370: Introduce upgrade mechanism for Page Builder content
1 parent d69af9a commit 04bd4af

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

app/code/Magento/PageBuilder/Setup/Converters/FixFullWidthRowPadding.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ public function convert($value)
5050
$innerDiv = $row->querySelector(".row-full-width-inner");
5151
$innerDiv->addStyle("padding", $padding);
5252
}
53-
return $document->stripHtmlWrapperTags();
53+
if ($fullWidthRows->count() > 0) {
54+
return $document->stripHtmlWrapperTags();
55+
} else {
56+
return $value;
57+
}
5458
}
5559
}

0 commit comments

Comments
 (0)