diff --git a/application/controllers/SupplyChainController.php b/application/controllers/SupplyChainController.php index 04c40ca..a6979df 100644 --- a/application/controllers/SupplyChainController.php +++ b/application/controllers/SupplyChainController.php @@ -35,6 +35,7 @@ class SupplyChainController extends BaseController 'service_type' => $this->getParam('service_type'), 'service_description' => $this->getParam('service_description'), 'criticality' => $this->getParam('criticality', 'medium'), + 'category_id' => $this->getParam('category_id') ?: null, 'contract_start_date' => $this->getParam('contract_start_date'), 'contract_expiry_date' => $this->getParam('contract_expiry_date'), 'notes' => $this->getParam('notes'), @@ -66,7 +67,7 @@ class SupplyChainController extends BaseController $updates = []; $fields = ['name', 'vat_number', 'contact_email', 'contact_name', 'service_type', - 'service_description', 'criticality', 'contract_start_date', 'contract_expiry_date', + 'service_description', 'criticality', 'category_id', 'contract_start_date', 'contract_expiry_date', 'security_requirements_met', 'notes', 'status']; foreach ($fields as $field) {