Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-5978

SQL errors are not properly caught and shown in SQL editing form

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.7.10
    • Fix Version/s: None
    • Labels:
      None

      Description

      If you enter invalid SQL instead of it showing the error and allowing you to modify it and retry, you get an ugly stack trace and when you go back in the browser your SQL is gone and you have to start again.

      After the patch is applied you get a nice form error:

      Pull request:

      https://github.com/jleyva/moodle-block_configurablereports/pull/58

        Attachments

          Activity

            People

            • Assignee:
              jleyva Juan Leyva
              Reporter:
              brendanheywood Brendan Heywood
              Participants:
              Component watchers:
              Juan Leyva, Sara Arjona (@sarjona)
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: