- Issue created by @yazzbe
- 🇨🇭Switzerland stefanos.petrakis@gmail.com Biel, Switzerland
This has been fixed with c65e8992 available in 7.x-1.x, 2.x and 3.x;
an update of the module should fix this
Deprecated function: usort(): Returning bool from comparison function is deprecated, return an integer less than, equal to, or greater than zero in EntityTranslationDefaultHandler->localTasksAlter() (line 1681 of /data/sites/web/www/sites/all/modules/entity_translation/includes/translation.handler.inc)
Error on edit of translated node. After update from PHP 7.4 to 8.1
Changed on line 1698 of file entity_translation/includes/translation.handler.inc
protected function translationTabSort($a, $b) {
return $a['#link']['weight'] > $b['#link']['weight'];
}
into this:
protected function translationTabSort($a, $b) {
return $a['#link']['weight'] <=> $b['#link']['weight'];
}
Active
3.0
Base system
This has been fixed with c65e8992 available in 7.x-1.x, 2.x and 3.x;
an update of the module should fix this