Replace occurrences to the non-used id_categories field

This commit is contained in:
Alex Tselegidis 2023-11-17 12:23:07 +01:00
parent f7ac615026
commit 1b22f90b6a

View file

@ -132,11 +132,11 @@ class Services extends EA_Controller {
'availabilities_type', 'availabilities_type',
'attendants_number', 'attendants_number',
'is_private', 'is_private',
'id_categories', 'id_service_categories',
]); ]);
$this->services_model->optional($service, [ $this->services_model->optional($service, [
'id_categories' => NULL 'id_service_categories' => NULL
]); ]);
$service_id = $this->services_model->save($service); $service_id = $this->services_model->save($service);
@ -182,11 +182,11 @@ class Services extends EA_Controller {
'availabilities_type', 'availabilities_type',
'attendants_number', 'attendants_number',
'is_private', 'is_private',
'id_categories', 'id_service_categories',
]); ]);
$this->services_model->optional($service, [ $this->services_model->optional($service, [
'id_categories' => NULL 'id_service_categories' => NULL
]); ]);
$service_id = $this->services_model->save($service); $service_id = $this->services_model->save($service);