keyField vs valueField switched oops
This commit is contained in:
@@ -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');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user