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

Typo in restore_legacy()

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.4.2
    • Fix Version/s: None
    • Component/s: Events API
    • Labels:
      None

      Description

      There may be a typo in the restore_legacy() function at line 486 of lib/classes/event/base.php. The line reads:

      } else if (strpos($legacy->action, 'delete') !== false) {
      $event->data['crud'] = 'p';
      

      I suspect the that the 'p' should be a 'd' in keeping with the c-r-u-d acronym. 

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated: