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

[PATCH] Incorrect start date used when manually enrolling users into a course

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 2.1.2
    • Fix Version/s: None
    • Component/s: Enrolments
    • Labels:
      None

      Description

      When viewing the Enrolled users page in a course, the following notice is displayed (with developer debugging output display enabled):

      Notice: Undefined variable: today in /home/jfilip/code/elis.loadtest/enrol/manual/lib.php on line 216
       
      Call Stack:
          0.0009     800872   1. {main}() /home/jfilip/code/elis.loadtest/enrol/users.php:0
          1.3489  140503056   2. plugin_renderer_base->render() /home/jfilip/code/elis.loadtest/enrol/users.php:199
          1.3490  140506368   3. core_enrol_renderer->render_course_enrolment_users_table() /home/jfilip/code/elis.loadtest/lib/outputrenderers.php:170
          1.3501  140525192   4. course_enrolment_table->get_manual_enrol_buttons() /home/jfilip/code/elis.loadtest/enrol/renderer.php:45
          1.3501  140525304   5. course_enrolment_manager->get_manual_enrol_buttons() /home/jfilip/code/elis.loadtest/enrol/renderer.php:463
          1.3501  140528248   6. enrol_manual_plugin->get_manual_enrol_button() /home/jfilip/code/elis.loadtest/enrol/locallib.php:899

      and the Enrol users popup does not use the current date as the default enrolment start date value, instead it uses the 0 UNIX timestamp date value.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              skodak Petr Skoda
              Reporter:
              jfilip Justin Filip
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: