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

Display of creator in course listings

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.7.1
    • Fix Version/s: 1.7.2
    • Component/s: Course
    • Labels:
      None
    • Affected Branches:
      MOODLE_17_STABLE
    • Fixed Branches:
      MOODLE_17_STABLE

      Description

      While I understand that version 1.8 has addressed this problem, the fact that creators are normally displayed in course listings is a major problem for many sites.

      There is absolutely no need to display creators because this is NOT a PEDAGOGICAL role but an ADMINISTRATIVE one. I therefore suggest that the 1.7 code be patched to prevent creators from being displayed. This can easily be done with the following conditional statement:

      $role = array_shift($roles); // First one
      if ($role->roleid > 2){
      $fullname = fullname($teacher, has_capability('moodle/site:viewfullnames', $context));
      $namesarray[] = format_string($role->name).': <a href="'.$CFG->wwwroot.'/user/view.php?id='.
      $teacher->id.'&course='.SITEID.'">'.$fullname.'</a>';
      }

      See http://moodle.org/mod/forum/discuss.php?d=58606&parent=283886

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              lazyfish Yu Zhang
              Reporter:
              trobb Thomas Robb
              Tester:
              Helen Foster
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
              Votes:
              9 Vote for this issue
              Watchers:
              8 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                30/Mar/07