refactor: rename phone field to telephone in ClinicsPage and update related types
- Updated the form schema in ClinicsPage to change the field name from 'phone' to 'telephone'. - Adjusted the input registration to reflect the new field name. - Added a new interface ClinicDetail to define detailed clinic information including phone and other attributes. - Modified the ClinicController to use null-safe access for province ID retrieval.
This commit is contained in:
@@ -491,7 +491,7 @@ class ClinicController extends BaseController
|
||||
'uuid' => $city->getUuid(),
|
||||
'id' => (string) $city->getId(),
|
||||
'name' => $city->getName(),
|
||||
'parent' => $city->getProvinceId() !== null ? (string) $city->getProvinceId() : null,
|
||||
'parent' => $city->getProvince()?->getId() !== null ? (string) $city->getProvince()->getId() : null,
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user