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

After reload of dictionary onDocumentReadyScript property fails to overwrite inherited value

    Details

    • Type: Bug Fix
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.3.0-rc1, 2.3
    • Component/s: Development
    • Security Level: Public (Public: Anyone can view)
    • Labels:
      None
    • Rice Module:
      KRAD
    • KRAD Feature Area:
      Data Dictionary
    • Application Requirement:
      KS, KS My Plan
    • KAI Review Status:
      Not Required
    • KTI Review Status:
      Not Required
    • Include in Release Notes?:
      Yes

      Description

      I have run into a recent issue reloading the dictionary. I reuse a table collection that has very similar properties on different views (example code below, first being the original, second inherits the first). Whenever I reload my dictionary, the onDocumentReadyScript property's value from the inherited bean is equal to the original's value, which causes a stacktrace because the expressions fail.

      <bean id="course_details_activity_data" parent="Uif-TableCollectionSection">
      <property name="collectionObjectClass" value="org.kuali.student.myplan.course.dataobject.ActivityOfferingItem"/>
      <property name="propertyName" value="activityOfferingItemList"/>
      <property name="onDocumentReadyScript" value="
      var tableHead = jQuery('table#@

      {dataObject.courseSummaryDetails.courseId}

      _@

      {#line.instituteCode}

      _@

      {#line.yearTerm.toATP().replace('.','-')}

      thead');
      tableHead.find('tr:gt(0)').remove();
      tableHead.before('
      <col style="width: 62px;">
      <col style="width: 103px;">
      <col style="width: 263px;">
      <col style="width: 57px;">
      <col style="width: 105px;">
      <col style="width: 73px;">
      <col style="width: 45px;">
      ');
      "/>...

      <bean id="single_AcademicRecord_Collection_Open" parent="course_details_activity_data">
      <property name="collectionObjectClass"
      value="org.kuali.student.myplan.plan.dataobject.AcademicRecordDataObject"/>
      <property name="propertyName" value="academicRecord"/>
      <property name="onDocumentReadyScript" value="
      var tableHead = jQuery('table#academicRecord_@

      {dataObject.atpId.replace('.','-')}

      thead');
      tableHead.find('tr:gt(0)').remove();
      tableHead.before('
      <col style="width: 24px;">
      <col style="width: 137px;">
      <col style="width: 69px;">
      <col style="width: 170px;">
      <col style="width: 93px;">
      <col style="width: 56px;">
      <col style="width: 79px;">
      ');
      "/>...

        Attachments

          Activity

          Error rendering 'com.atlassian.jira.jira-view-issue-plugin:activitymodule'. Please contact your JIRA administrators.

            People

            • Assignee:
              jkneal Jerry Neal (Inactive)
              Reporter:
              garettg Garett Gowens
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: