Skip to content

Commit

Permalink
PAR-2493: Validation on partnership legal entity
Browse files Browse the repository at this point in the history
  • Loading branch information
robwild-affinitydigital committed Aug 28, 2024
1 parent 8b97d6d commit 5e3b252
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -521,6 +521,9 @@ public function validate(array $form, FormStateInterface &$form_state, $index =
}
}
}

// Validate additional rules if a profile was found.
parent::validate($form, $form_state, $index, $action);
}
elseif ($register_id == 'ch_as_different_type') {
// Get the legal entity name.
Expand Down Expand Up @@ -566,14 +569,14 @@ public function validate(array $form, FormStateInterface &$form_state, $index =
$this->setError($form, $form_state, $number_element, $message);
}
}

// Validate additional rules if a profile was found.
parent::validate($form, $form_state, $index, $action);
}
elseif ($registry_element) {
$message = 'Please choose whether this is a registered or unregistered legal entity.';
$this->setError($form, $form_state, $registry_element, $message);
}

// Validate additional rules if a profile was found.
parent::validate($form, $form_state, $index, $action);
}

}

0 comments on commit 5e3b252

Please sign in to comment.