Uploaded image for project: 'Reference Application'
  1. Reference Application
  2. RA-1696

Switch from 'success()' to 'done()' on success and 'error()' to 'fail()' error in Ajax request in JQuery 3.4.1

    XMLWordPrintable

    Details

    • Complexity:
      Low

      Description

      Due to the current changes introduced by the  Bootstrap integrations, including the switch to jQuery 3.4, the use of jQuery.getJSON(....).success() throws exceptions and breaks the UI when used. This is evident with the visit script.

      To do. Change occurrences of  jQuery.getJSON(....).success() to jQuery.getJSON(....).done() and also any .error() occurrence on the returned promise to .fail()

      Related topic on talk: https://talk.openmrs.org/t/missing-patientid/26552

        Gliffy Diagrams

          Attachments

            Activity

              People

              Assignee:
              mozzy Moses Mutesasira
              Reporter:
              reagan Reagan patrick Makoba
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: