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

UserControl (Uif-Kim-PersonControl) causes JavaScript Error

    Details

    • Type: Bug Fix Bug Fix
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0-rc3
    • Fix Version/s: 2.2
    • Component/s: Development
    • Security Level: Public (Public: Anyone can view)
    • Labels:
      None
    • Similar issues:
      KULRICE-7209Agenda Editor: Javascript errors
      KULRICE-10462RuntimeException when UserControl is in Lookup
      KULRICE-12765FilterableLookupCriteriaControl support is broken and causing issues with KIM UserControl and GroupControl
      KULRICE-14043QuickFinder on Collection AddLine causes JavaScript Errors
      KULRICE-6355Javascript Error in IE & FF on Agende Lookup Screen
      KULRICE-3530The "refresh" buttons for namespace code fields on group and role inquiries are visible and cause HTTP 500 errors when JavaScript is disabled
      KULRICE-8401Javascript error in the kitchen sink
      KULRICE-6666Validation causes Javascript error with an addLine containing a checkbox or radio
      KULRICE-9449Add input validation to UserControl and GroupControl
    • Rice Module:
      KRAD
    • KAI Review Status:
      Not Required
    • KTI Review Status:
      Not Required

      Description

      Uif Components -> Input Fields
      JavaScript Error "name is undefined http://dev1.rice.kuali.org/krad/scripts/krad.utility.js 26" when tabbing out of "User Control"

        Activity

        Hide
        Claus Niesen added a comment -

        The issue is that the if statement checks for "{" instead of "[" in the following code of AttributeQuery.java:

        public String getQueryMethodArgumentFieldsJsString() {
            String queryMethodArgsJs = "[";
        
            for (String methodArg : queryMethodArgumentFieldList) {
                if (!StringUtils.equals(queryMethodArgsJs, "{")) {
                    queryMethodArgsJs += ",";
                }
                queryMethodArgsJs += "\"" + methodArg + "\"";
            }
        
            queryMethodArgsJs += "]";
        
            return queryMethodArgsJs;
        }
        
        Show
        Claus Niesen added a comment - The issue is that the if statement checks for "{" instead of "[" in the following code of AttributeQuery.java: public String getQueryMethodArgumentFieldsJsString() { String queryMethodArgsJs = "[" ; for ( String methodArg : queryMethodArgumentFieldList) { if (!StringUtils.equals(queryMethodArgsJs, "{" )) { queryMethodArgsJs += "," ; } queryMethodArgsJs += "\" " + methodArg + " \""; } queryMethodArgsJs += "]" ; return queryMethodArgsJs; }

          People

          • Assignee:
            Claus Niesen
            Reporter:
            Claus Niesen
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - 1 hour
              1h
              Remaining:
              Remaining Estimate - 1 hour
              1h
              Logged:
              Time Spent - Not Specified
              Not Specified

                Structure Helper Panel