Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-16739

Sorting Bug in eZCountryType::fetchTranslatedNames on some systems

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • 4.4.0beta2, 4.4.0beta3
    • 4.2.0, 4.3.0
    • Misc
    • 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.

      Attachments

        Activity

          People

            bd bd
            cici cici
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: