Follow-up to #2650434: Clearing cache via UI in translated language resets config translation of field labels to default language
Problem/Motivation
$request variable is not used and setCurrentUser() call resets inside
Proposed resolution
Clean-up and fix doc block
Remaining tasks
N/A
User interface changes
N/A
API changes
N/A
Data model changes
N/A
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 2839396-2.patch | 1.21 KB | andypost |
Comments
Comment #2
andypostComment #4
andypostComment #5
andypostThis is a code clean-up
Comment #6
tstoecklerLooks good to me.
Comment #7
alexpottAre we sure that we can remove this - what about sub requests? Yes this obviously untested but removing it here seems wrong.
Comment #8
tstoecklerRe @alexpott, the
$this->negotiator->setCurrentUser($this->currentUser)just above that already does a reset, it does$this->reset()internally. So this really is just cleanup of dead code, no functional change.Comment #9
alexpottAh thanks @tstoeckler.
Committed 2d4af39 and pushed to 8.3.x. Thanks!