mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-12-29 01:52:24 +03:00
Set the default appointment color upon registration.
This commit is contained in:
parent
3594bb8294
commit
573786bb65
1 changed files with 5 additions and 0 deletions
|
@ -426,6 +426,11 @@ class Booking extends EA_Controller {
|
|||
$appointment['location'] = $service['location'];
|
||||
}
|
||||
|
||||
if (empty($appointment['color']) && ! empty($service['color']))
|
||||
{
|
||||
$appointment['color'] = $service['color'];
|
||||
}
|
||||
|
||||
// Save customer language (the language which is used to render the booking page).
|
||||
$customer['language'] = session('language') ?? config('language');
|
||||
$customer_id = $this->customers_model->save($customer);
|
||||
|
|
Loading…
Reference in a new issue