Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello!
In the #2827653: Render cache should be cleared when menu link or entity is updated I gave you a patch with a bug. Originally your code was testing if there are multiple languages via count($this->languageManager->getLanguages()) > 1
. But I proposed to swap it with $this->languageManager->isMultilingual()
.
I meant to swap it that way, but somehow I overlooked to remove the surrounding count()
. So right now it does count($this->languageManager->isMultilingual()) > 1
which is nonsense.
Comment | File | Size | Author |
---|---|---|---|
#2 | 2840017-multilingual-2.patch | 573 bytes | bucefal91 |
Comments
Comment #2
bucefal91 CreditAttribution: bucefal91 at Websolutions Agency commentedI enclose a very simple patch that takes care of it.
Comment #3
rphair CreditAttribution: rphair at COSD commentedgood catch, just testing now before commit...
Comment #5
rphair CreditAttribution: rphair at COSD commentedtagged a this into a new beta to be sure it's pushed out to multilingual sites...
Comment #6
bucefal91 CreditAttribution: bucefal91 at Websolutions Agency commentedThank you :)