Kuali Rice Development
  1. Kuali Rice Development
  2. KULRICE-13269

Javascript error when selecting the lookup on the widgetInputOnly with Quickfinder demo

    Details

    • Type: Bug Fix Bug Fix
    • Status: Closed Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 2.5
    • Fix Version/s: 2.5
    • Component/s: Development
    • Security Level: Public (Public: Anyone can view)
    • Labels:
      None
    • Similar issues:
      KULRICE-9293JavaScript error on QuickFinder inside Collections
      KULRICE-11396Input field widgetInputOnly with quickfinder example doesn't work
      KULRICE-14043QuickFinder on Collection AddLine causes JavaScript Errors
      KULRICE-12435Some quickfinder lookups are broken
      KULRICE-13006Method access exception when opening a quickfinder
      KULRICE-7228Javascript error on lookup view
      KULRICE-6355Javascript Error in IE & FF on Agende Lookup Screen
      KULRICE-12888Radio buttons don't select the result from a lookup view within a maintenance document
      KULRICE-11103Problem with demo groups : display not being synced with the value of the select (for the different demos)
      KULRICE-10796Create Functional Test for KRAD Demo Labs Lookups - Quickfinder Disabled
    • Sprint:
      Core 2.5.0-rc Sprint 1
    • KAI Review Status:
      Not Required
    • KTI Review Status:
      Not Required
    • Code Review Status:
      Not Required
    • Include in Release Notes?:
      Yes
    • Story Points:
      2

      Description

      There is a Javascript error when I hit the lookup for on the widgetInputOnly with Quickfinder demo

      To reproduce go to KRAD Library --> Fields --> Input Field --> widgetInputOnly with Quickfinder and then hit the lookup magnifying glass.

      Error: Uncaught TypeError: Cannot read property 'match' of undefined
      http://localhost:8080/krad-dev/krad/scripts/krad.validate.js
      1742

        Issue Links

          Activity

          Hide
          Claus Niesen added a comment -

          In the anonymous function in krad.initialize.js (line 654) with this code

          $currentControl = jQuery(this).children("[data-role='Control']");

          there is no data-role='Control'.

          <button id="u19a55ze_quickfinder_act" class="btn btn-default uif-action icon-search" data-fieldstosend="null" data-onclick="showLookupDialog(&quot;u19a55ze_quickfinder_act&quot;,false,&quot;Uif-DialogGroup-Lookup&quot;);" data-role="Action" data-focusid="NEXT_INPUT:u19a55ze_quickfinder_act" data-submit_data="{&quot;actionParameters[conversionFields]&quot;:&quot;number:inputField8&quot;,&quot;methodToCall&quot;:&quot;performLookup&quot;,&quot;actionParameters[quickfinderId]&quot;:&quot;u19a55ze_quickfinder&quot;,&quot;actionParameters[multipleValuesSelect]&quot;:&quot;false&quot;,&quot;actionParameters[dataObjectClassName]&quot;:&quot;org.kuali.rice.krad.demo.travel.dataobject.TravelAccount&quot;,&quot;actionParameters[baseLookupUrl]&quot;:&quot;http://localhost:8080/krad-dev/kr-krad/lookup&quot;}">
          </button>
          
          Show
          Claus Niesen added a comment - In the anonymous function in krad.initialize.js (line 654) with this code $currentControl = jQuery( this ).children( "[data-role='Control']" ); there is no data-role='Control'. <button id= "u19a55ze_quickfinder_act" class= "btn btn- default uif-action icon-search" data-fieldstosend= " null " data-onclick= "showLookupDialog(&quot;u19a55ze_quickfinder_act&quot;, false ,&quot;Uif-DialogGroup-Lookup&quot;);" data-role= "Action" data-focusid= "NEXT_INPUT:u19a55ze_quickfinder_act" data-submit_data= "{&quot;actionParameters[conversionFields]&quot;:&quot;number:inputField8&quot;,&quot;methodToCall&quot;:&quot;performLookup&quot;,&quot;actionParameters[quickfinderId]&quot;:&quot;u19a55ze_quickfinder&quot;,&quot;actionParameters[multipleValuesSelect]&quot;:&quot; false &quot;,&quot;actionParameters[dataObjectClassName]&quot;:&quot;org.kuali.rice.krad.demo.travel.dataobject.TravelAccount&quot;,&quot;actionParameters[baseLookupUrl]&quot;:&quot;http: //localhost:8080/krad-dev/kr-krad/lookup&quot;}" > </button>
          Hide
          Kristina Taylor (Inactive) added a comment -

          It seems that we should be checking whether $currentControl has anything in it before we hand it off to be validated. This is relatively new code from KULRICE-7315.

          Show
          Kristina Taylor (Inactive) added a comment - It seems that we should be checking whether $currentControl has anything in it before we hand it off to be validated. This is relatively new code from KULRICE-7315 .

            People

            • Assignee:
              Sona Sona (Inactive)
              Reporter:
              Shannon Hess
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Agile

                  Structure Helper Panel