Skip to content

Commit

Permalink
fix for Magento 2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreySavenkov committed Jan 29, 2021
1 parent 4c51321 commit cfd5e51
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Model/ResourceModel/ProjectEntity/Grid/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
use Magento\Framework\DB\Adapter\AdapterInterface;
use Magento\Framework\Event\ManagerInterface;
use Magento\Framework\Model\ResourceModel\Db\AbstractDb;
use Magento\Sales\Ui\Component\DataProvider\Document;
use Magento\Framework\View\Element\UiComponent\DataProvider\Document;
use Psr\Log\LoggerInterface;
use SmartCat\Connector\Model\ResourceModel\ProjectEntity\Collection as EntityCollection;

Expand Down
4 changes: 2 additions & 2 deletions Service/Strategy/PageStrategy.php
Original file line number Diff line number Diff line change
Expand Up @@ -219,13 +219,13 @@ private function getPage(ProjectEntity $entity)

$stores = $page->getStores() ?: [];
$stores = array_diff($stores, [0]);
$stores = array_diff($stores, ["0"]);
if (count($stores) === 0) {
$newStoreIds = array_diff($this->getAllStores(), [0, $entity->getTargetStore()]);
} else {
$newStoreIds = array_diff($stores, [$entity->getTargetStore()]);
}
$page->setStoreId($newStoreIds);
$this->pageRepository->save($page);
$page->setStoreId($newStoreIds)->save();

$newPage
->setStoreId([$entity->getTargetStore()])
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"smartcat/smartcat-api": "^2.0.3"
},
"type": "magento2-module",
"version": "1.3.6",
"version": "1.3.7",
"license": "GPL-3.0-or-later",
"autoload": {
"files": [
Expand Down
2 changes: 1 addition & 1 deletion etc/adminhtml/system.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
</field>
<field id="version" translate="label" type="label" sortOrder="6" showInDefault="1" showInStore="0" showInWebsite="0">
<label>Version:</label>
<comment>1.3.6</comment>
<comment>1.3.7</comment>
</field>
</group>
</section>
Expand Down

0 comments on commit cfd5e51

Please sign in to comment.