Uploaded image for project: 'OpenMRS Dictionary Manager'
  1. OpenMRS Dictionary Manager
  2. OCLOMRS-891

Reset the Error Message: Create Concept form

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: TBD
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: 1.1.0: MVP+
    • Component/s: None
    • Labels:
      None
    • Complexity:
      Medium
    • Development:

      Description

      Bug: If you have triggered an error message on a form (e.g. the Create Concept 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 Concept form, scroll to the bottom.
      4. You should not see the error message from the previous form.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                Unassigned Unassigned
                Reporter:
                grace Grace Potma
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: