Unverified Commit 292262a4 authored by Stefan Auditor's avatar Stefan Auditor Committed by Stefan Auditor
Browse files

Issue #3282696 by sanduhrs: Port of l10n_community: Fix po-file export

parent 4256b393
Loading
Loading
Loading
Loading
+1 −7
Original line number Diff line number Diff line
@@ -161,12 +161,6 @@ class ExportForm extends FormBase {
   * {@inheritdoc}
   */
  public function validateForm(array &$form, FormStateInterface $form_state) {
    $project_storage = \Drupal::entityTypeManager()
      ->getStorage('l10n_server_project');
    if (!$project_storage->load($form_state->getValue('project'))) {
      $form_state->setErrorByName('project', $this->t('Invalid project selected.'));
      $form_state->setValue('project', '');
    }
  }

  /**
@@ -214,7 +208,7 @@ class ExportForm extends FormBase {
      empty($form_state->getValue('translations')),
      empty($form_state->getValue('verbose')),
      FALSE,
      $form_state->getValue('suggestions')
      empty($form_state->getValue('suggestions'))
    );

    if (isset($export_result) && is_array($export_result)) {