keyField vs valueField switched oops

This commit is contained in:
2025-04-02 00:36:54 -07:00
parent fce8cc6b8b
commit 732819ff73

View File

@@ -164,7 +164,7 @@ class ProductCategoriesController extends AppController
$form = $this->request->getQuery('form', 'product_category');
if ($form === 'product') {
$productCategoriesQ = $productCategoriesTable
->find('treeList', keyPath: 'name', valuePath: 'internal_id');
->find('treeList', keyPath: 'internal_id', valuePath: 'name');
} else {
$productCategoriesQ = $productCategoriesTable->find('treeList');
}