Skip to content

Commit

Permalink
Fixed installation issue
Browse files Browse the repository at this point in the history
  • Loading branch information
DanGarner committed May 20, 2022
1 parent dfd5bb0 commit 9367ca6
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 5 deletions.
11 changes: 11 additions & 0 deletions Api/ColumnInterface.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php
/**
* Copyright © Aitoc. All rights reserved.
*/

namespace Aitoc\Core\Api;

interface ColumnInterface
{
const AITOC_NOTIFICATION_FIELD = 'aitoc_notification';
}
2 changes: 1 addition & 1 deletion Plugin/Notifications/AitocNotificationLogoAdd.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function aroundRender(
) {
$result = $proceed($row);

if ($row->getData(\Aitoc\Core\Setup\UpgradeSchema::AITOC_NOTIFICATION_FIELD)) {
if ($row->getData(\Aitoc\Core\Api\ColumnInterface::AITOC_NOTIFICATION_FIELD)) {
return '<div class="aitoc-grid-message"><div class="aitoc-notif-logo"></div>' . $result . '</div>';
} else {
return $result;
Expand Down
2 changes: 1 addition & 1 deletion Plugin/Notifications/AitocNotificationLogoAddInToolbar.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ private function getAitocNotificationsCollection(NativeToolbarEntry $subject)
{
return $subject->getLatestUnreadNotifications()
->clear()
->addFieldToFilter(\Aitoc\Core\Setup\UpgradeSchema::AITOC_NOTIFICATION_FIELD, 1);
->addFieldToFilter(\Aitoc\Core\Api\ColumnInterface::AITOC_NOTIFICATION_FIELD, 1);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion Plugin/Notifications/GridActions.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function aroundRender(
\Magento\Framework\DataObject $row
) {
$result = $proceed($row);
if ($row->getData(\Aitoc\Core\Setup\UpgradeSchema::AITOC_NOTIFICATION_FIELD)) {
if ($row->getData(\Aitoc\Core\Api\ColumnInterface::AITOC_NOTIFICATION_FIELD)) {
$result .= sprintf(
'<a class="action" href="%s" title="%s">%s</a>',
$this->getDisableUrl(),
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
"name": "aitoc/core",
"description": "Core extension by Aitoc",
"type": "magento2-module",
"version": "1.0.15",
"version": "1.0.16",
"license": [
"proprietary"
"Commercial"
],
"autoload": {
"files": [
Expand Down

0 comments on commit 9367ca6

Please sign in to comment.