from main app code base

This commit is contained in:
2025-03-27 01:11:41 -07:00
parent b17634c08a
commit d9a59fb82b
18 changed files with 131 additions and 1034 deletions

View File

@@ -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'));
}