Skip to content

Commit 4035ec0

Browse files
author
nikunj
committed
#21853: Correct the comment.
1 parent b59fc5a commit 4035ec0

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

lib/internal/Magento/Framework/Mview/View/Subscription.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,9 @@ public function create()
118118
// Add statements for linked views
119119
foreach ($this->getLinkedViews() as $view) {
120120
/** @var \Magento\Framework\Mview\ViewInterface $view */
121-
// Use the column name from specific subscription instead of
122-
// use from the one which is currently updated.
121+
// Use the column name from specific linked view instead of
122+
// using from the one which is currently updated for all
123+
// the views.
123124
$subscriptions = $view->getSubscriptions();
124125
$subscription = $subscriptions[$this->getTableName()];
125126
$trigger->addStatement($this->buildStatement($event, $view->getChangelog(), $subscription['column']));
@@ -151,8 +152,9 @@ public function remove()
151152
// Add statements for linked views
152153
foreach ($this->getLinkedViews() as $view) {
153154
/** @var \Magento\Framework\Mview\ViewInterface $view */
154-
// Use the column name from specific subscription instead of
155-
// use from the one which is currently updated.
155+
// Use the column name from specific linked view instead of
156+
// using from the one which is currently updated for all
157+
// the views.
156158
$subscriptions = $view->getSubscriptions();
157159
$subscription = $subscriptions[$this->getTableName()];
158160
$trigger->addStatement($this->buildStatement($event, $view->getChangelog(), $subscription['column']));

0 commit comments

Comments
 (0)