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

When a fragment redirects to another one, its decoration is duplicated

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Should
    • Resolution: Fixed
    • None
    • 2.x UI Framework 0.8
    • None
    • None
    • Medium

    Description

      Fragment controller methods are allowed to return a FragmentRequest, which essentially means they want to be replaced by a different fragment. And it would be typical for a controller to return a new FragmentRequest with the same fragment configuration that was passed to the original request.

      The side-effect of this is that any decoration being applied to the fragment gets duplicated.

      Proposed solution: any time that the replacement FragmentRequest contains exactly the same FragmentConfiguration as the original request, then the decorator on the replacment request should be cleared before the request is processed.

      Gliffy Diagrams

        Attachments

          Activity

            People

              darius Darius Jazayeri
              darius Darius Jazayeri
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: