Uploaded image for project: 'OpenConceptLab for OpenMRS'
  1. OpenConceptLab for OpenMRS
  2. OCLOMRS-893

Reset the Error Message: Create Source form

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Should
    • Resolution: Fixed
    • None
    • 1.1.0: MVP+
    • None
    • None

    Description

      Bug: If you have triggered an error message on a form (e.g. the Create Concept, Create Dictionary, or Create Source form), that message stays there the next time you open a new form. (This was addressed in https://issues.openmrs.org/browse/OCLOMRS-878, but this ticket is asking for a deeper fix.)

      Work around/fix requested in this ticket: use a react hook to reset the form state when you recreate a form.

      Acceptance Criteria:

      1. Trigger an error message when creating a concept (or on any form, e.g. Create Concept, Create Dictionary, or Create Source forms). (e.g. you can try to create a concept, dictionary, or source using an ID that already exists.)
      2. See error message. Leave that form.
      3. Open a new Create Source form, scroll to the bottom.
      4. You should not see the error message from the previous form.

      Gliffy Diagrams

        Attachments

          Issue Links

            Activity

              People

                jwnasambu Juliet Wamalwa
                grace Grace Potma
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: