Part of #2047951: [META] Remove calls to deprecated global $user and $GLOBALS['user']
All places in views_ui module should be fixed
core/modules/views_ui/lib/Drupal/views_ui/ViewUI.php:
return is_object($this->lock) && ($this->lock->owner != $GLOBALS['user']->id());
| Comment | File | Size | Author |
|---|---|---|---|
| #21 | vdc-2061925-21.patch | 2.58 KB | dawehner |
| #21 | interdiff.txt | 926 bytes | dawehner |
| #17 | 2061925-17.patch | 2.23 KB | alphawebgroup |
| #15 | 2061925-15.patch | 2.24 KB | alphawebgroup |
| #13 | 2061925-13.patch | 9.79 KB | albert volkman |
Comments
Comment #1
alphawebgroupComment #1.0
alphawebgroupUpdated issue summary.
Comment #2
dawehnerLet's inject the request object properly.
Comment #4
alphawebgrouplooks like that piece of code has an error
should be:
Comment #5
alphawebgroup@dawehner
btw, thanks a lot for your patch.. I've got a very good lesson on how to use dependency injection in plugins
Comment #6
andypostThis needs to be converted to
current_userserviceComment #7
dawehnerWell, this basically needs a full rewrite.
Comment #8
alphawebgroupyep, will work on it
Comment #9
alphawebgroupComment #10
andypostYou should inject 'current_user' service https://drupal.org/node/2032447
Comment #12
albert volkman commentedRe-roll.
Comment #13
albert volkman commentedAccidentally added some unrelated changes. Disregard #12.
Comment #15
alphawebgroupnew patch according to "current user" servise
+ test for isLocked method
Comment #17
alphawebgroupComment #19
alphawebgroup#17: 2061925-17.patch queued for re-testing.
Comment #21
dawehnerAdding some tests.
Thanks for adding some phpunit tests! This is just fixing them.
Comment #22
joelpittetThis looks great, applies passes and nice work on the test @alweb :) And that fix @dawehner!
PHPUnit tests run so much quicker!
Comment #22.0
joelpittetUpdated issue summary.
Comment #23
xano21: vdc-2061925-21.patch queued for re-testing.
Comment #24
xano21: vdc-2061925-21.patch queued for re-testing.
Comment #25
alphawebgrouplooks like this #21 patch can be commited
it's RTBC since 26 Oct
Comment #26
andypost21: vdc-2061925-21.patch queued for re-testing.
Comment #28
alphawebgroupFatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 268435456 bytes) in /var/lib/drupaltestbot/sites/default/files/checkout/core/lib/Drupal/Core/Database/Connection.php on line 336
FATAL Drupal\system\Tests\Common\UrlTest: test runner returned a non-zero error code (255).
Comment #29
alphawebgroup21: vdc-2061925-21.patch queued for re-testing.
Comment #30
dawehnerIt is not your fault ...
Comment #31
dawehnerback to RTBC
Comment #32
catchCommitted/pushed to 8.x, thanks!