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

Cannot save PersonAttributes of type User

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Should
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: OpenMRS 1.9.0
    • Component/s: None
    • Labels:
      None
    • Complexity:
      Low

      Description

      We are using Version: 1.6.1 Build 15664. The format for person attribute of Ten Cell Leader is org.openmrs.User. When saving a selected user as the Ten Cell Leader, it has the following error:

      Please fix all errors and try again.
      Invalid value for Ten Cell Leader: '164613'

      Action items:
      1) The PersonAttribute.getHydratedObject needs to also try to hydrate via an Integer constructor.
      2) Write a unit test or two against this class to verify that it works

        Attachments

        1. screenshot-1.jpg
          screenshot-1.jpg
          289 kB
        2. screenshot-2.jpg
          screenshot-2.jpg
          227 kB
        3. screenshot-3.jpg
          screenshot-3.jpg
          343 kB
        4. screenshot-4.jpg
          screenshot-4.jpg
          242 kB
        5. TRUNK-1829-made-User-class-implement-Attributable-interface.patch
          2 kB

          Activity

            People

            Assignee:
            ashishmittal Aashish Mittal
            Reporter:
            ayeung Ada Yeung [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: