Uploaded image for project: 'Kuali Rice Development'
  1. Kuali Rice Development
  2. KULRICE-7066

Issue when two quickfinders on same view have different lookup configuration

    Details

    • Type: Bug Fix
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.2.0-m4, 2.2
    • Component/s: Development
    • Security Level: Public (Public: Anyone can view)
    • Labels:
      None
    • Rice Module:
      KRAD
    • KAI Review Status:
      Not Required
    • KTI Review Status:
      Not Required

      Description

      When you have two quickfinders on the same view, and one has different configuration than the other (for example, assume the second one sends in readOnlyfields), the settings are not cleared after each one is invoked.

      If you click the first quickfinder which has readOnlyFields set, then close and click the second one which does not, the readOnlyFields are still sent. I thought this might be because the action parameters are not getting cleared out between the lightbox invocations. However I tried clearing them (by clearing the formcomplete div) and that didn't fix the problem.

        Attachments

          Activity

          Hide
          jkneal Jerry Neal (Inactive) added a comment -

          Here is the code I tried to clear the action parameters:

          jq("#kualiForm").ajaxSubmit({
          success: function(data) {

          // Add the returned URL to the FancyBox href setting
          options['href'] = data;

          // clear out hiddens
          jq("#formComplete").html("");

          // Open the light box
          if (top == self)

          { jq.fancybox(options); }

          else

          { parent.$.fancybox(options); }

          }
          });

          Show
          jkneal Jerry Neal (Inactive) added a comment - Here is the code I tried to clear the action parameters: jq("#kualiForm").ajaxSubmit({ success: function(data) { // Add the returned URL to the FancyBox href setting options ['href'] = data; // clear out hiddens jq("#formComplete").html(""); // Open the light box if (top == self) { jq.fancybox(options); } else { parent.$.fancybox(options); } } });
          Hide
          jkneal Jerry Neal (Inactive) added a comment -

          Eric,

          Please create a test case for this in the configuration test view.

          Jerry

          Show
          jkneal Jerry Neal (Inactive) added a comment - Eric, Please create a test case for this in the configuration test view. Jerry
          Hide
          kunadawa Eric Njogu (Inactive) added a comment -

          Test case created in the configuration test view with different configuration options for readOnlySearchFields and it appears to be working ok.

          Show
          kunadawa Eric Njogu (Inactive) added a comment - Test case created in the configuration test view with different configuration options for readOnlySearchFields and it appears to be working ok.
          Hide
          matthew.wuertz Matthew Wuertz (Inactive) added a comment -

          The test page is not quite right; it will succeed, but it doesn't really test the issue.

          Show
          matthew.wuertz Matthew Wuertz (Inactive) added a comment - The test page is not quite right; it will succeed, but it doesn't really test the issue.
          Hide
          matthew.wuertz Matthew Wuertz (Inactive) added a comment -

          Another developer corrected this issue. I adjusted the test to properly demonstrate the issue. If one quickfinder had an option that the second did not, the option from the first would persist.

          Show
          matthew.wuertz Matthew Wuertz (Inactive) added a comment - Another developer corrected this issue. I adjusted the test to properly demonstrate the issue. If one quickfinder had an option that the second did not, the option from the first would persist.

            People

            • Assignee:
              matthew.wuertz Matthew Wuertz (Inactive)
              Reporter:
              jkneal Jerry Neal (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: