Commit 20994861 authored by Leandro's avatar Leandro Committed by Damien McKenna
Browse files

Issue #3256110 by Andrei Haurukovich, Lms300, DamienMcKenna, RenatoG: Export...

Issue #3256110 by Andrei Haurukovich, Lms300, DamienMcKenna, RenatoG: Export does not initialize every handler, causing null values to used as parameter of array_keys().
parent b0eedee9
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -2201,7 +2201,10 @@ class view extends views_db_object {
    // Ensure this view supports translation, we have a display, and we
    // have a localization plugin.
    // @todo Export does not init every handler.
    if (($this->is_translatable() || $op == 'export') && $this->init_display() && $this->init_localization()) {
    if (($this->is_translatable() || $op == 'export')
        && $this->init_display()
        && $this->init_localization()
        && isset($this->localization_plugin->view->display)) {
      $this->localization_plugin->process_locale_strings($op);
    }
  }