Details
-
Bug
-
Resolution: Fixed
-
Medium
-
4.2.0, 4.3.0
-
None
-
Operating System: debian linux
PHP Version: PHP 5.2.0-8+etch16
Database and version: mysql
Browser (and version):
Description
On some linux systems I had a sorting bug in eZCountryType::fetchTranslatedNames. The sort order of all country selectors was incomprehensible. I located the problem (after hours of course g) in this call which exists since eZP 4.2.0:
usort( $countries, 'eZCountryType::compareCountryNames' );
According to the PHP Docu on http://www.php.net/manual/en/function.usort.php this should look like this:
usort( $countries, array( 'eZCountryType', 'compareCountryNames' ) );
After I changed that it worked very well.