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

js error when delete the last line from collection with Add Blank Line button

    Details

    • Type: Bug Fix Bug Fix
    • Status: Open Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: Backlog
    • Component/s: Development
    • Security Level: Public (Public: Anyone can view)
    • Labels:
    • Similar issues:
      KULRICE-5346Delete collection line on editing maintenance doc - not deleting old collection line
      KULRICE-5284Maintenance Docs - Add option for message when line is deleted
      KULRICE-7490Highlight collection when hovering on add button
      KULRICE-7652Add Blank Line at bottom Table Layout doesn't go to next Page
      KULRICE-13991Fill AFT Gap: Add Line ("Collection Add Line with Custom Actions")
      KULRICE-10596Add line for add blank option is crunched
      KULRICE-6861JS error with refreshWhenChanged
      KULRICE-8082Deleting a collection line doesn't remove the line only the data
      KULRICE-5345Add ability to identify new lines in collections
      KULRICE-6333Adding to a sub-collection results in a new empty line on the last sub-collection off the primary collection
    • Rice Module:
      KRAD
    • KRAD Feature Area:
      UIF Script
    • Application Requirement:
      KS
    • KAI Review Status:
      Not Required
    • KTI Review Status:
      Not Required
    • Code Review Status:
      Not Required
    • Include in Release Notes?:
      Yes

      Description

      In KS application, we try to use Add Blank Line button for a collection. So the collection table is empty at the very beginning. By clicking Add Line button, a blank line would be added to the collection. We found out after I add several items to the collection and then begin to delete one by one. When I delete the last item in the collection and bring collection table back to empty, krad would throw js exception:
      Uncaught TypeError: Cannot call method 'fnPageChange' of null
      http://env2.ks.kuali.org/krad/scripts/krad.utility.js
      1998
      This error causes our ks script – defined through p:onDocumentReadyScript="calculatePercent()" won't be able to run and deliver the correct calculation result for display.

      I have tested on rice http://env2.rice.kuali.org/, Collection Test View page (http://env2.rice.kuali.org/kr-krad/uicomponents?viewId=ConfigurationTestView-Collections&methodToCall=start&formKey=7997db5a-aef3-43da-bdbc-eb092d81a992&cacheKey=c12twwlo2duf2jt6528y1py2jr&pageId=Collections-DefaultTests)
      under Add Blank Line tab, under "Table Layout With Add Blank line TOP (default)" section, try to delete all lines in the collection table, after the whole table is gone, a similar js error shows up:
      Uncaught TypeError: Cannot call method 'fnPageChange' of null
      http://env2.rice.kuali.org/krad/min/scripts/krad_2.3.0-M3-r39527.min.js
      86

        Issue Links

          Activity

          There are no comments yet on this issue.

            People

            • Assignee:
              Unassigned
              Reporter:
              Bonnie Huang (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Structure Helper Panel