Skip to content

Commit 9367ca6

Browse files
committed
Fixed installation issue
1 parent dfd5bb0 commit 9367ca6

File tree

5 files changed

+16
-5
lines changed

5 files changed

+16
-5
lines changed

Api/ColumnInterface.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php
2+
/**
3+
* Copyright © Aitoc. All rights reserved.
4+
*/
5+
6+
namespace Aitoc\Core\Api;
7+
8+
interface ColumnInterface
9+
{
10+
const AITOC_NOTIFICATION_FIELD = 'aitoc_notification';
11+
}

Plugin/Notifications/AitocNotificationLogoAdd.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public function aroundRender(
2222
) {
2323
$result = $proceed($row);
2424

25-
if ($row->getData(\Aitoc\Core\Setup\UpgradeSchema::AITOC_NOTIFICATION_FIELD)) {
25+
if ($row->getData(\Aitoc\Core\Api\ColumnInterface::AITOC_NOTIFICATION_FIELD)) {
2626
return '<div class="aitoc-grid-message"><div class="aitoc-notif-logo"></div>' . $result . '</div>';
2727
} else {
2828
return $result;

Plugin/Notifications/AitocNotificationLogoAddInToolbar.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ private function getAitocNotificationsCollection(NativeToolbarEntry $subject)
2626
{
2727
return $subject->getLatestUnreadNotifications()
2828
->clear()
29-
->addFieldToFilter(\Aitoc\Core\Setup\UpgradeSchema::AITOC_NOTIFICATION_FIELD, 1);
29+
->addFieldToFilter(\Aitoc\Core\Api\ColumnInterface::AITOC_NOTIFICATION_FIELD, 1);
3030
}
3131

3232
/**

Plugin/Notifications/GridActions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function aroundRender(
3333
\Magento\Framework\DataObject $row
3434
) {
3535
$result = $proceed($row);
36-
if ($row->getData(\Aitoc\Core\Setup\UpgradeSchema::AITOC_NOTIFICATION_FIELD)) {
36+
if ($row->getData(\Aitoc\Core\Api\ColumnInterface::AITOC_NOTIFICATION_FIELD)) {
3737
$result .= sprintf(
3838
'<a class="action" href="%s" title="%s">%s</a>',
3939
$this->getDisableUrl(),

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
"name": "aitoc/core",
33
"description": "Core extension by Aitoc",
44
"type": "magento2-module",
5-
"version": "1.0.15",
5+
"version": "1.0.16",
66
"license": [
7-
"proprietary"
7+
"Commercial"
88
],
99
"autoload": {
1010
"files": [

0 commit comments

Comments
 (0)