Commit de7aab40 authored by Pavel Filinkov's avatar Pavel Filinkov Committed by Gonzalo Torrevejano
Browse files

Issue #3259723 by kvantstudio: TypeError: PDOStatement::fetchAll(): Argument...

Issue #3259723 by kvantstudio: TypeError: PDOStatement::fetchAll(): Argument #2 must be of type int, string given
parent b1809947
Loading
Loading
Loading
Loading
+10 −10
Original line number Diff line number Diff line
@@ -68,10 +68,10 @@ class WatchdogDeleteForm extends ConfirmFormBase {
   */
  public function buildForm(array $form, FormStateInterface $form_state) {

    $types = $this->connection->query('SELECT DISTINCT(type) FROM {watchdog}')->fetchCol('type');
    $types = $this->connection->query('SELECT DISTINCT(type) FROM {watchdog}')->fetchCol();

    foreach ($types as $type) {
      $options[$type] = t($type);
      $options[$type] = $this->t($type);
    }

    $form['filters'] = [
@@ -86,7 +86,7 @@ class WatchdogDeleteForm extends ConfirmFormBase {
      '#type' => 'select',
      '#multiple' => TRUE,
      '#title' => $this->t('Type'),
      '#description' => t('Select one or more types to delete.'),
      '#description' => $this->t('Select one or more types to delete.'),
      '#options' => $options,
      '#size' => 10,
      '#weight' => '0',
@@ -97,7 +97,7 @@ class WatchdogDeleteForm extends ConfirmFormBase {
      '#type' => 'select',
      '#multiple' => TRUE,
      '#title' => $this->t('Severity'),
      '#description' => t('Select one or more severities to delete.'),
      '#description' => $this->t('Select one or more severities to delete.'),
      '#options' => RfcLogLevel::getLevels(),
      '#size' => 8,
      '#weight' => '1',