[KULRICE-9326] After reload of dictionary onDocumentReadyScript property fails to overwrite inherited value Created: 11/Apr/13  Updated: 12/Aug/13  Resolved: 23/Jul/13

Status: Closed
Project: Kuali Rice Development
Component/s: Development
Affects Version/s: None
Fix Version/s: 2.3.0-rc1, 2.3
Security Level: Public (Public: Anyone can view)

Type: Bug Fix Priority: Critical
Reporter: Garett Gowens Assignee: Jerry Neal (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

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;">
');
"/>...


Generated at Thu Aug 13 00:55:02 CDT 2020 using JIRA 7.0.11#70121-sha1:19d24976997c1d95f06f3e327e087be0b71f28d4.