From 2546da87f86dec009cc081132894c6577021c4e1 Mon Sep 17 00:00:00 2001 From: Jekabs Date: Tue, 21 May 2024 09:01:13 +0400 Subject: [PATCH] Update add-admin-grid.md so the example would work with multiple stores Added fix for the collection in multi-store setup --- src/pages/development/components/add-admin-grid.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/development/components/add-admin-grid.md b/src/pages/development/components/add-admin-grid.md index 195b2684b..26d76e851 100644 --- a/src/pages/development/components/add-admin-grid.md +++ b/src/pages/development/components/add-admin-grid.md @@ -346,7 +346,7 @@ class AddAttributesToUiDataProvider $result->getSelect()->joinLeft( ['devgridname' => $attribute->getBackendTable()], - 'devgridname.' . $column . ' = main_table.' . $column . ' AND devgridname.attribute_id = ' + 'devgridname.' . $column . ' = main_table.' . $column . ' AND devgridname.store_id = 0 AND devgridname.attribute_id = ' . $attribute->getAttributeId(), ['name' => 'devgridname.value'] );