@@ -118,8 +118,9 @@ public function create()
118
118
// Add statements for linked views
119
119
foreach ($ this ->getLinkedViews () as $ view ) {
120
120
/** @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.
123
124
$ subscriptions = $ view ->getSubscriptions ();
124
125
$ subscription = $ subscriptions [$ this ->getTableName ()];
125
126
$ trigger ->addStatement ($ this ->buildStatement ($ event , $ view ->getChangelog (), $ subscription ['column ' ]));
@@ -151,8 +152,9 @@ public function remove()
151
152
// Add statements for linked views
152
153
foreach ($ this ->getLinkedViews () as $ view ) {
153
154
/** @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.
156
158
$ subscriptions = $ view ->getSubscriptions ();
157
159
$ subscription = $ subscriptions [$ this ->getTableName ()];
158
160
$ trigger ->addStatement ($ this ->buildStatement ($ event , $ view ->getChangelog (), $ subscription ['column ' ]));
0 commit comments