Part of #2047951: [META] Remove calls to deprecated global $user and $GLOBALS['user']
Remove all entries:

core/modules/content_translation/content_translation.module:      'uid' => $GLOBALS['user']->id(),
core/modules/content_translation/lib/Drupal/content_translation/ContentTranslationController.php:      $name = $new_translation ? $GLOBALS['user']->name : user_load($entity->translation[$form_langcode]['uid'])->name;
core/modules/content_translation/lib/Drupal/content_translation/Tests/ContentTranslationSyncImageTest.php:        'uid' => $GLOBALS['user']->id(),
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

m1r1k’s picture

Status: Needs review » Needs work
m1r1k’s picture

Oh, wrong patch, I'll post correct one shortly

m1r1k’s picture

Status: Needs work » Needs review
FileSize
2.79 KB

Here is patch

Status: Needs review » Needs work
m1r1k’s picture

Status: Needs work » Needs review
FileSize
685 bytes

Weird, but it works nice on my local, lets try to retest. Also upload new patch with correct name:

m1r1k’s picture

Status: Needs review » Needs work

Sorry, wrong patch.

m1r1k’s picture

Status: Needs review » Needs work
m1r1k’s picture

Try with removed request: scope for current_user service

m1r1k’s picture

Status: Needs work » Needs review

Push to retesting

m1r1k’s picture

Assigned: m1r1k » Unassigned
Status: Needs review » Postponed
Issue tags: +blocked-by-request-scope
catch’s picture

Status: Postponed » Needs review
joelpittet’s picture

joelpittet’s picture

#10 looks like the wrong patch, but #8 is dead on. If #8 comes back green it's ready to be RTBC.

areke’s picture

Issue summary: View changes
FileSize
2.79 KB

@joelpittet You're right. #10 is wrong. I re-rolled the patch at #8 because it's the patch we're looking for.

joelpittet’s picture

Status: Needs review » Reviewed & tested by the community

Perfect! Thanks I think this is good to go:) Checked there was no remaining in the content translation module and it passes testbot. Thanks @areke

catch’s picture

Status: Reviewed & tested by the community » Needs work

No longer applies.

joelpittet’s picture

Status: Needs work » Needs review
FileSize
1.41 KB

Re-roll of #16, auto merged.

joelpittet’s picture

Status: Needs review » Reviewed & tested by the community

Setting this back to RTBC because I double checked the re-roll and there is no other changes necessary.

xjm’s picture

catch’s picture

Status: Reviewed & tested by the community » Fixed

Committed/pushed to 8.x, thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.