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

Only show add / edit links if concepts.locked is false

    XMLWordPrintable

    Details

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

      Description

      There is a global property named "concepts.locked" which, if true, will cause a ConceptsLockedException to be thrown upon calling ConceptService.saveConcept
      \\\\
      Currently, this is caught upon form submission when creating and editing concepts, and a generic error message is displayed, which reads "Cannot save concept". This is not an adequate User Interface experience.
      \\\\
      Suggestions:

      • Only show "Add" or "Edit" concept links if "concepts.locked" != true. For example:
      • /dictionary/index.htm
      • /dictionary/concept.htm?conceptId=xxx
      • If a ConceptsLockedException is thrown in ConceptFormController, catch this exception and display a more appropriate error message to the user explaining why the operation was unsuccessful.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              arhine Andrew Rhine [X] (Inactive)
              Reporter:
              mseaton Mike Seaton
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: