Skip to content
Snippets Groups Projects
Commit 6d7612cb authored by Sergey Ivashchenko's avatar Sergey Ivashchenko
Browse files

MAGETWO-39479: Pull request processing

parent 0e3ed7b4
No related merge requests found
...@@ -100,11 +100,11 @@ class Grid extends DataGrid ...@@ -100,11 +100,11 @@ class Grid extends DataGrid
{ {
$this->openFilterBlock(); $this->openFilterBlock();
$storeGroupElements = $this->_rootElement->find($this->purchasePointFilter) $storeGroupElements = $this->_rootElement->find($this->purchasePointFilter)
->getElements('.//optgroup[./option]', Locator::SELECTOR_XPATH); ->getElements('//option/preceding-sibling::optgroup[1]', Locator::SELECTOR_XPATH);
$result = []; $result = [];
foreach ($storeGroupElements as $storeGroupElement) { foreach ($storeGroupElements as $storeGroupElement) {
$result[] = trim($storeGroupElement->getAttribute('label'), ' '); $result[] = trim($storeGroupElement->getAttribute('label'));
} }
return $result; return $result;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment