Uploaded image for project: 'OpenMRS Core'
  1. OpenMRS Core
  2. TRUNK-2961

Saving user options for the default super user should not throw error message on second and subsequent times

    Details

    • Complexity:
      Low

      Description

      When i login as the default super user (person_id=1), select the "My Profile" link and click the "Save Options" button, for the first time it saves successfully. For all the rest of the times it fails with the error message below:

      An Internal Error has Occurred
      org.openmrs.api.APIException
      '' failed to validate with reason: person.gender: Cannot be empty or null
      

      I think first time succeeds because the gender is an empty string which passes the validator. But then this empty string is set to null by the OpenmrsObjectSaveHandler leading to the subsequent failures.
      Editing the person object for this default super user and setting their gender resolves this problem.

        Gliffy Diagrams

          Attachments

            Attachments-Category-Modification

              Activity

                People

                • Assignee:
                  raff Rafal Korytkowski
                  Reporter:
                  dkayiwa Daniel Kayiwa
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: