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

Add more info to the course request mail

XMLWordPrintable

    • MOODLE_501_STABLE
    • MOODLE_501_STABLE
    • MDL-85003-main-add-more-info-to-course-request-mail
    • Hide

      Requiments

      1. Email configured (SMTP or Mailpit)

       

      Testing instructions

      1. Login as admin.
      2. Go to  Site Administration -> Courses -> Course request
      3. Select a suitable user for "courserequestnotify" who can receive emails (e.g. "admin").
      4. Log out.
      5. Login as a teacher.
      6. Go to the course/request.php page
      7. Fill in all fields in the form and click on "Request a course".
      8. Go to your email program and check the email for the selected "courserequestnotify" user
      9. Confirm you see the following text with the variables evaluated:

        User \{$a->user} has requested a new course on your site.
        You can review the request at \{$a->link}.
         
        Request details:
         - Course full name: \{$a->fullname}
         - Course short name : \{$a->shortname}
         - Category: \{$a->category}
         - Reason for this course request: \{$a->reason}
        

      Show
      Requiments Email configured (SMTP or Mailpit)   Testing instructions Login as admin. Go to  Site Administration -> Courses -> Course request Select a suitable user for "courserequestnotify" who can receive emails (e.g. "admin"). Log out. Login as a teacher. Go to the course/request.php page Fill in all fields in the form and click on "Request a course". Go to your email program and check the email for the selected "courserequestnotify" user Confirm you see the following text with the variables evaluated: User \{$a->user} has requested a new course on your site. You can review the request at \{$a->link}.   Request details: - Course full name: \{$a->fullname} - Course short name : \{$a->shortname} - Category: \{$a->category} - Reason for this course request: \{$a->reason}
    • Hide

      Code verified against automated checks.

      Checked MDL-85003 using repository: https://github.com/melanietreitinger/moodle

      More information about this report

      Built on: Thu Apr 17 07:06:27 UTC 2025

      Show
      Code verified against automated checks. Checked MDL-85003 using repository: https://github.com/melanietreitinger/moodle main (0 errors / 0 warnings) [branch: MDL-85003-main-add-more-info-to-course-request-mail | CI Job ] More information about this report Built on: Thu Apr 17 07:06:27 UTC 2025
    • Show
      Launching automatic jobs for branch MDL-85003 -main-add-more-info-to-course-request-mail https://ci.moodle.org/view/Testing/job/DEV.02%20-%20Developer-requested%20PHPUnit/19065/ PHPUnit (sqlsrv) https://ci.moodle.org/view/Testing/job/DEV.01%20-%20Developer-requested%20Behat/65190/ Behat (NonJS - boost and classic) https://ci.moodle.org/view/Testing/job/DEV.01%20-%20Developer-requested%20Behat/65191/ Behat (Firefox - boost) https://ci.moodle.org/view/Testing/job/DEV.01%20-%20Developer-requested%20Behat/65192/ Behat (Firefox - classic) https://ci.moodle.org/view/Testing/job/DEV.01%20-%20Developer-requested%20Behat/65193/ App tests (stable app version) --> unrelated (can be ignored) Built on: Thu Apr 17 10:25:15 UTC 2025

      The message of the course request notification mail is currently very frugal:

      'User {$a->user} requested a new course at <a href="{$a->link}">{$a->link}</a>.'

      It would be nice if more information regarding the requested course would be available in the language string variable $a, such as:

      • shortname
      • fullname
      • category
      • reason

      This would be very helpful to process course requests more efficiently.

        1. image-2025-04-03-14-01-33-636.png
          31 kB
          Melanie Treitinger
        2. image-2025-04-07-09-44-20-525.png
          37 kB
          Melanie Treitinger
        3. image-2025-04-08-11-55-20-287.png
          16 kB
          Melanie Treitinger
        4. MDL-85003.png
          129 kB
          Ron Carl Alfon Yu

            melanie.treitinger@ruhr-uni-bochum.de Melanie Treitinger
            melanie.treitinger@ruhr-uni-bochum.de Melanie Treitinger
            Sara Arjona (@sarjona) Sara Arjona (@sarjona)
            Amaia Anabitarte Amaia Anabitarte
            Ron Carl Alfon Yu Ron Carl Alfon Yu
            Votes:
            3 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 hours, 59 minutes
                3h 59m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.