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

Replace deprecated method notify_message

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.1
    • Fix Version/s: None
    • Component/s: Competencies
    • Labels:
    • Testing Instructions:
      Hide
      • go the template page
      • edit the template with visible = No
      • go to the template list page and click on cohorts
      • You should see the notification message
        Cohorts will not be synchronized while this template is hidden.
      • go back to the template list page and click on User plans
      • you should see the notification message
        New user plans can not be created while this template is hidden.
      • edit the template with duedate=now (or -5min)
      • go to the template list page and click on cohorts
      • you should see the notification message
        Cohorts will not be synchronized while the template's due date is passed.
      • go back to the template list page and click on User plans
      • you should see the notification message
        New user plans can not be created: this template's due date has, or is about to, expire.
      Show
      go the template page edit the template with visible = No go to the template list page and click on cohorts You should see the notification message Cohorts will not be synchronized while this template is hidden. go back to the template list page and click on User plans you should see the notification message New user plans can not be created while this template is hidden. edit the template with duedate=now (or -5min) go to the template list page and click on cohorts you should see the notification message Cohorts will not be synchronized while the template's due date is passed. go back to the template list page and click on User plans you should see the notification message New user plans can not be created: this template's due date has, or is about to, expire.
    • Affected Branches:
      MOODLE_31_STABLE
    • Pull Master Branch:
      MDL-53608_master
    • Sprint:
      CBE Sprint 7

      Description

      notify_message is deprecated, (used in template_cohorts.php and template_plans.php) replace it with
      \core\notification::add($message, $messagetype);

        Attachments

          Activity

            People

            • Assignee:
              taboubii Issam Taboubi
              Reporter:
              taboubii Issam Taboubi
              Peer reviewer:
              Frédéric Massart
              Participants:
              Component watchers:
              Damyon Wiese, Jean-Philippe Gaudreau, Steve Massicotte, Serge Gauthier, Issam Taboubi, Adrian Greeve, Mihail Geshoski, Peter Dias
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: