Skip to content

Commit b3e15cd

Browse files
author
Bohdan Korablov
committed
MAGETWO-52343: 404 when trying to display product view page (product.info.main container label is missing) #4234
1 parent 2d50e82 commit b3e15cd

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

lib/internal/Magento/Framework/View/Layout/Generator/Container.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -84,15 +84,6 @@ public function generateContainer(
8484
$elementName,
8585
$options
8686
) {
87-
if (isset($options[Layout\Element::CONTAINER_OPT_LABEL])) {
88-
$structure->setAttribute(
89-
$elementName,
90-
Layout\Element::CONTAINER_OPT_LABEL,
91-
$options[Layout\Element::CONTAINER_OPT_LABEL]
92-
);
93-
unset($options[Layout\Element::CONTAINER_OPT_LABEL]);
94-
}
95-
9687
unset($options['type']);
9788

9889
$this->validateOptions($options);

lib/internal/Magento/Framework/View/Test/Unit/Layout/Generator/ContainerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ public function testProcessWithException($structureElements)
152152
->method('getElements')
153153
->willReturn($structureElements);
154154

155-
$this->structureMock->expects($this->once())
155+
$this->structureMock->expects($this->never())
156156
->method('setAttribute')
157157
->willReturnSelf();
158158

0 commit comments

Comments
 (0)