Commit 85fc94d2 authored by Felip Manyer i Ballester's avatar Felip Manyer i Ballester
Browse files

Issue #3282696: Port of l10n_community: translation form (submit)

parent 6c64233f
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -704,6 +704,7 @@ class TranslateForm extends FormBase implements TrustedCallbackInterface {
    return [
      '#wrapper_attributes' => $element['#attributes'],
      'actions' => $this->translateActions($element),
      'original' => $element['original'] ?? [],
      // Add the radio box to pick the active translation.
      'active' => $element['active'],
      'author' => empty($element['author']) ? [] : [
+2 −2
Original line number Diff line number Diff line
@@ -174,11 +174,11 @@ class L10nTranslator {
        else {
          $q = $this->connection
            ->select('l10n_server_translation', 't');
          $q->leftJoin('users', 'u', 'u.uid = t.uid');
          $q->leftJoin('users_field_data', 'ufd', 'ufd.uid = t.uid');
          $q->fields('t', [
            'tid', 'translation', 'uid', 'created', 'changed', 'suggestion', 'status',
          ]);
          $q->addField('u', 'name', 'username');
          $q->addField('ufd', 'name', 'username');
          $q->condition('t.language', $string->language)
            ->condition('t.sid', $string->sid)
            ->condition('t.status', 1)