Moodle
  1. Moodle
  2. MDL-31173

undefined content in throw new restore_decode_processor_exception('incorrect_restore_decode_rule', get_class($content));

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.2
    • Fix Version/s: 2.1.5, 2.2.2
    • Component/s: Backup
    • Labels:
    • Rank:
      37614

      Description

      in restore_decode_processor, method restore_decode_processor::add_rule()...

      throw new restore_decode_processor_exception('incorrect_restore_decode_rule', get_class($content));
      

      ...should be...

      throw new restore_decode_processor_exception('incorrect_restore_decode_rule', get_class($rule));
      

        Activity

        Hide
        Petr Škoda added a comment - - edited

        to integrators: please cherry pick to stable branches

        Show
        Petr Škoda added a comment - - edited to integrators: please cherry pick to stable branches
        Hide
        Sam Hemelryk added a comment -

        Sweet thanks Petr - this has been integrated now and cherry-picked to 21 and 22.

        Show
        Sam Hemelryk added a comment - Sweet thanks Petr - this has been integrated now and cherry-picked to 21 and 22.
        Hide
        Sam Hemelryk added a comment -

        Confirmed no testing required

        Show
        Sam Hemelryk added a comment - Confirmed no testing required
        Hide
        Eloy Lafuente (stronk7) added a comment -

        Your nice code represents only 1/46 of the issues that have been sent upstream this week, so thanks, but not many.

        Nah, joking, many thanks! Closing this a fixed, ciao

        Show
        Eloy Lafuente (stronk7) added a comment - Your nice code represents only 1/46 of the issues that have been sent upstream this week, so thanks, but not many. Nah, joking, many thanks! Closing this a fixed, ciao

          People

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

            Dates

            • Created:
              Updated:
              Resolved: