from main app code base
This commit is contained in:
@@ -59,7 +59,7 @@ class ProductsController extends AppController
|
||||
Log::debug(print_r($product->getErrors(), true));
|
||||
$this->Flash->error(__('The product could not be saved. Please, try again.'));
|
||||
}
|
||||
$productCategories = $this->Products->ProductCategories->find('list', limit: 200)->all();
|
||||
$productCategories = $this->Products->ProductCategories->find('list', keyField: 'internal_id', valueField: 'name' )->all();
|
||||
$this->set(compact('product', 'productCategories'));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user