Skip to content

Commit

Permalink
OEL-1525: Abort validation if view is not found, to prevent error.
Browse files Browse the repository at this point in the history
  • Loading branch information
donquixote committed May 3, 2022
1 parent 69fc4b6 commit b7e98cf
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ public function blockValidate($form, FormStateInterface $form_state): void {

if (!$view) {
$form_state->setErrorByName('view_id', $this->t('View id was not found.'));
return;
}

if (!$view->getDisplay($values['view_display'])) {
Expand Down

0 comments on commit b7e98cf

Please sign in to comment.