Skip to content

Commit

Permalink
VACMS-17854: Updates the logic for computers, instead of humans
Browse files Browse the repository at this point in the history
  • Loading branch information
omahane committed Oct 14, 2024
1 parent 0128acd commit 6db1309
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -414,8 +414,9 @@ public function alterVamcSystemBillingAndInsuranceForm(FormIdAlterEvent $event)
private function showTelephone($event) {
$form = &$event->getForm();
$form_id = $form['#form_id'];
$old_field_to_hide = $form_id === 'node_health_care_local_facility_form'
|| 'node_health_care_local_facility_edit_form'
// We want to hide the old mental health phone field on the facility node,
// where there are two phone fields.
$old_field_to_hide = $form_id === 'node_health_care_local_facility_form' || $form_id === 'node_health_care_local_facility_edit_form'
? 'field_mental_health_phone' : 'field_phone_number';
$status = $this->featureStatus->getStatus('feature_telephone_migration_v1');
if ($status) {
Expand Down

0 comments on commit 6db1309

Please sign in to comment.