Commit 6b246fe4 authored by Andrii Chyrskyi's avatar Andrii Chyrskyi Committed by Navneet Singh
Browse files

Issue #3271705: Trying to access array offset on value of type null

parent 3b7378a3
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -80,8 +80,8 @@ class InformBlockForm extends EntityForm {
    $form['summary'] = [
      '#type' => 'text_format',
      '#title' => $this->t('Summary'),
      '#default_value' => $informblock->summary['value'],
      '#format' => $informblock->summary['format'],
      '#default_value' => $informblock->summary['value'] ?? '',
      '#format' => $informblock->summary['format'] ?? NULL,
      '#required' => TRUE,
      '#description' => $this->t('Summarise what data is collected.'),
    ];
@@ -89,8 +89,8 @@ class InformBlockForm extends EntityForm {
    $form['body'] = [
      '#type' => 'text_format',
      '#title' => $this->t('Description'),
      '#default_value' => $informblock->body['value'],
      '#format' => $informblock->body['format'],
      '#default_value' => $informblock->body['value'] ?? '',
      '#format' => $informblock->body['format'] ?? NULL,
      '#required' => FALSE,
      '#description' => $this->t('Describe in detail what data is collected and how it is used.'),
    ];