Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-6255

bug in print_html tablelib.php

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 1.6
    • Fix Version/s: 1.6.4
    • Component/s: Libraries
    • Labels:
      None
    • Environment:
      All
    • Affected Branches:
      MOODLE_16_STABLE
    • Fixed Branches:
      MOODLE_16_STABLE

      Description

      line 535ish these lines:

      if(empty($this->sess->collapse[$column])) {

      if($this->column_suppress[$column] && $suppress_lastrow !== NULL && $suppress_lastrow[$index] === $data)

      { echo '?'; }

      else

      { echo $data; }

      }

      when a course has more than 1 user with the same name, and when the html is ordered by firstname or surname - eg an assignment grading list the 2nd row, instead of showing the users fullname it uses ? instead of the $data

      the $suppress_lastrow[$index] === $data seems to be the problem. - If you comment out the 2nd if statement, it displays the name correctly - What is that 2nd if statement supposed to be doing?

      Dan

        Attachments

          Activity

            People

            Assignee:
            danmarsden Dan Marsden
            Reporter:
            danmarsden Dan Marsden
            Participants:
            Component watchers:
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              17/Jan/07