Skip to content

Commit

Permalink
Merge pull request #361 from UN-OCHA/develop
Browse files Browse the repository at this point in the history
Develop -> Main -  v1.0.11
  • Loading branch information
orakili authored Jun 2, 2022
2 parents b1fbb70 + 087d670 commit 78a8dbe
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ protected function addBundleFormAlterations(array &$form, FormStateInterface $fo
$this->addSelectionLimit($form, 'field_career_categories', 1);
// Prevent Drupal from returning "An illegal choice was selected" error
// message instead of indicating the field is mandatory.
$form['field_career_categories']['widget']['#default_value'] = NULL;
if (empty($form['field_career_categories']['widget']['#default_value'])) {
$form['field_career_categories']['widget']['#default_value'] = NULL;
}

// Disable themes for some career categories and limit selection.
$this->alterJobThemeField($form, $form_state);
Expand Down

0 comments on commit 78a8dbe

Please sign in to comment.