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

Id for an element is being appended with a '1' which is causing the scripts to stop working. After M4 upgrade

    Details

    • Type: Bug Fix Bug Fix
    • Status: Closed Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 2.2.0-m4
    • Fix Version/s: 2.2.0-rc1, 2.2
    • Component/s: Development
    • Security Level: Public (Public: Anyone can view)
    • Labels:
      None
    • Similar issues:
      KULRICE-7267Rice upgrade scripts will not work with "real" data
      KULRICE-8471richTable "aoColumnDefs" property problem in M4
      KULRICE-7398Rice 2.1 Upgrade script recreates sequence
      KULRICE-6600Rice 2.0 upgrade scripts coming with KIM bootstrap data need to be consistent w.r.t ID generation
      KULRICE-7448Database upgrade scripts should not drop tables
      KULRICE-9369Upgrade Script Error
      KULRICE-2621Remove old fields from data dictionary related to Document Type merge, KIM work, etc., create a script which will remove them from data dictionary files
      KULRICE-10154FlexRM fails to generate ActionRequest for a stop when UnitHierarchyProvider returns list of stops in a certain order
      KULRICE-8715Problems with 2.1.3 Oracle upgrade scripts
      KULRICE-6936Invalid SQL in 1.0.3.1 to 1.0.3.2 upgrade script
    • Rice Module:
      KRAD
    • Application Requirement:
      KS My Plan
    • KAI Review Status:
      Not Required
    • KTI Review Status:
      Not Required

      Description

      <bean id="watch_list" parent="Uif-VerticalBoxGroup" p:headerText="Bookmarked Courses">
      <property name="cssClasses">
      <list merge="true">
      <value>myplan-saved-courses-summary</value>
      <value>myplan-stacked-list</value>
      </list>
      </property>
      <property name="header">
      <bean parent="Uif-HeaderSix"/>
      </property>
      <property name="onDocumentReadyScript" value="
      myplanRetrieveComponent('watch_list','saved_courses_summary','search','lookup',

      {viewId:'SavedCoursesSummary-LookupView'}

      );
      jQuery('#watch_list')
      .subscribe('PLAN_ITEM_DELETED', function(data){
      if (data.planItemType === 'wishlist') {
      myplanRetrieveComponent('saved_courses_summary','saved_courses_summary','search','lookup',

      {viewId:'SavedCoursesSummary-LookupView'}

      );
      jQuery('div.jquerybubblepopup.jquerybubblepopup-myplan .jquerybubblepopup-tail').fadeOut(250, function()

      { jQuery(this).remove(); }

      );
      }
      })
      .subscribe('PLAN_ITEM_ADDED', function(data){
      if (data.planItemType === 'wishlist') {
      myplanRetrieveComponent('saved_courses_summary','saved_courses_summary','search','lookup',

      {viewId:'SavedCoursesSummary-LookupView'}

      ,data.planItemId);
      }
      });
      "/>
      </bean>

      <bean id="your_stuff_widget" parent="Uif-VerticalBoxSubSection" p:headerText="YOUR STUFF"
      p:style="margin-bottom:10px;">
      <property name="header">
      <bean parent="Uif-HeaderFive">
      <property name="cssClasses">
      <list merge="true">
      <value>primary</value>
      </list>
      </property>
      </bean>
      </property>
      <property name="cssClasses">
      <list merge="true">
      <value>myplan-widget</value>
      </list>
      </property>
      <property name="items">
      <list>
      <ref bean="watch_list_adv"/>
      <ref bean="non_student_degree_audits_list"/>
      </list>
      </property>
      <property name="propertyReplacers">
      <list>
      <bean parent="Uif-ConditionalBeanPropertyReplacer" p:propertyName="items"
      p:condition="T(org.kuali.student.myplan.utils.UserSessionHelper).isStudent()">
      <property name="replacement">
      <list>
      <ref bean="watch_list"/>
      <ref bean="degree_audits_list"/>
      </list>
      </property>
      </bean>
      </list>
      </property>
      </bean>

      1. In the above bean definition a property replacer is used to replace the property "items". which has the beans watch_list (with id="watch_list") and degree_audits_list.
      2. Previously it was fine to have watch_list in both the places both property replacer bean and normal items bean use to have the same id when loaded (watch_list).
      3. But after M4 upgrade the property replacer is replacing the watch_list bean id ("watch_list") with new watch_list which is also appending "1" to the id (watch_list1")
      4. Which is causing our scripts to fail as they are referencing to the id watch_list not the id watch_list1 .

      HTML:
      <div id="watch_list1" class="uif-group uif-boxGroup uif-verticalBoxGroup myplan-saved-courses-summary myplan-stacked-list" data-parent="your_stuff_widget">
      <div id="u176" class="uif-header" data-headerfor="watch_list1">
      <h6 class="uif-headerText"><span class="uif-headerText-span">Bookmarked Courses</span>
      </h6>
      </div>
      <div id="u178" class="uif-validationMessages uif-groupValidationMessages" style="display: none;" data-messagesfor="watch_list1">
      </div>
      <div id="u175_boxLayout" class="uif-boxLayout uif-verticalBoxLayout clearfix">
      </div>
      </div>
      <input type="hidden" data-role="script" data-for="watch_list1" value="jQuery(document).ready(function(e) {
      myplanRetrieveComponent('watch_list','saved_courses_summary','search','lookup',

      {viewId:'SavedCoursesSummary-LookupView'}

      ); jQuery('#watch_list') .subscribe('PLAN_ITEM_DELETED', function(data){ if (data.planItemType === 'wishlist') { myplanRetrieveComponent('saved_courses_summary','saved_courses_summary','search','lookup',

      {viewId:'SavedCoursesSummary-LookupView'}

      ); jQuery('div.jquerybubblepopup.jquerybubblepopup-myplan .jquerybubblepopup-tail').fadeOut(250, function()

      { jQuery(this).remove(); }); } }) .subscribe('PLAN_ITEM_ADDED', function(data){ if (data.planItemType === 'wishlist') { myplanRetrieveComponent('saved_courses_summary','saved_courses_summary','search','lookup',{viewId:'SavedCoursesSummary-LookupView'},data.planItemId); } });
      });" script="first_run">




      Which should be :

      <div id="watch_list" class="uif-group uif-boxGroup uif-verticalBoxGroup myplan-saved-courses-summary myplan-stacked-list" data-parent="your_stuff_widget">
      <div id="u176" class="uif-header" data-headerfor="watch_list">
      <h6 class="uif-headerText"><span class="uif-headerText-span">Bookmarked Courses</span>
      </h6>
      </div>
      <div id="u178" class="uif-validationMessages uif-groupValidationMessages" style="display: none;" data-messagesfor="watch_list">
      </div>
      <div id="u175_boxLayout" class="uif-boxLayout uif-verticalBoxLayout clearfix">
      </div>
      </div>
      <input type="hidden" data-role="script" data-for="watch_list" value="jQuery(document).ready(function(e) {
      myplanRetrieveComponent('watch_list','saved_courses_summary','search','lookup',{viewId:'SavedCoursesSummary-LookupView'}); jQuery('#watch_list') .subscribe('PLAN_ITEM_DELETED', function(data){ if (data.planItemType === 'wishlist') { myplanRetrieveComponent('saved_courses_summary','saved_courses_summary','search','lookup',{viewId:'SavedCoursesSummary-LookupView'}); jQuery('div.jquerybubblepopup.jquerybubblepopup-myplan .jquerybubblepopup-tail').fadeOut(250, function() { jQuery(this).remove(); }

      ); } }) .subscribe('PLAN_ITEM_ADDED', function(data){ if (data.planItemType === 'wishlist') { myplanRetrieveComponent('saved_courses_summary','saved_courses_summary','search','lookup',

      {viewId:'SavedCoursesSummary-LookupView'}

      ,data.planItemId); } });
      });" script="first_run">

        Issue Links

          Activity

          There are no comments yet on this issue.

            People

            • Assignee:
              Jerry Neal (Inactive)
              Reporter:
              Hemanth Gajula (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Structure Helper Panel