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

Replace hard-coded language strings on adhoc task runner page

    XMLWordPrintable

Details

    • MOODLE_402_STABLE, MOODLE_403_STABLE
    • MOODLE_402_STABLE, MOODLE_403_STABLE
    • MDL-80727-402
    • MDL-80727-403
    • Hide

      Setup

      1. Execute the following query in your DB to ensure there is data present (replace your database name/prefix as appropriate):

        INSERT INTO `moodle`.`m_task_adhoc` (`component`, `classname`, `nextruntime`, `faildelay`, `customdata`, `blocking`, `timecreated`, `attemptsavailable`) VALUES ('mod_forum', '\mod_forum\task\send_user_notifications', '1711976400', '3600', '[\"1\"]', '0', '1711976400', '1');
        

      Test

      1. Log in as admin
      2. Navigate to Server > Tasks > Ad hoc tasks in site administration
      3. Press Run all for the send_user_notifications task
      4. Confirm the page heading shows Run all '\mod_forum\task\send_user_notifications' tasks
      5. Navigate back to Ad hoc tasks
      6. Press Run all failed for the send_user_notifications task
      7. Confirm the page heading shows Run failed '\mod_forum\task\send_user_notifications' tasks
      8. Note the value in the Task ID column
      9. Amend the page URL manually to the following:

        <WWWROOT>/admin/tool/task/run_adhoctasks.php?id=<TASKID>
        

      10. Confirm the page heading shows Run '\mod_forum\task\send_user_notifications' task ID <TASKID>
      Show
      Setup Execute the following query in your DB to ensure there is data present (replace your database name/prefix as appropriate): INSERT INTO `moodle`.`m_task_adhoc` (`component`, `classname`, `nextruntime`, `faildelay`, `customdata`, `blocking`, `timecreated`, `attemptsavailable`) VALUES ('mod_forum', '\mod_forum\task\send_user_notifications', '1711976400', '3600', '[\"1\"]', '0', '1711976400', '1'); Test Log in as admin Navigate to Server > Tasks > Ad hoc tasks in site administration Press Run all for the send_user_notifications task Confirm the page heading shows Run all '\mod_forum\task\send_user_notifications' tasks Navigate back to Ad hoc tasks Press Run all failed for the send_user_notifications task Confirm the page heading shows Run failed '\mod_forum\task\send_user_notifications' tasks Note the value in the Task ID column Amend the page URL manually to the following: <WWWROOT>/admin/tool/task/run_adhoctasks.php?id=<TASKID> Confirm the page heading shows Run '\mod_forum\task\send_user_notifications' task ID <TASKID>

    Description

      See various permutations of $heading in this block from MDL-70975 - we should define language strings rather than hard-coding in English

      Attachments

        Issue Links

          Activity

            People

              pholden Paul Holden
              pholden Paul Holden
              Stevani Andolo Stevani Andolo
              Ilya Tregubov Ilya Tregubov
              Ron Carl Alfon Yu Ron Carl Alfon Yu
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 hour, 11 minutes
                  1h 11m

                  Clockify

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