Loading l10n_community/src/Form/ExportForm.php +1 −7 Original line number Diff line number Diff line Loading @@ -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', ''); } } /** Loading Loading @@ -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)) { Loading Loading
l10n_community/src/Form/ExportForm.php +1 −7 Original line number Diff line number Diff line Loading @@ -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', ''); } } /** Loading Loading @@ -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)) { Loading