Changeset 135d67e in iPeer


Ignore:
Timestamp:
2012-12-06T15:06:17-08:00 (6 years ago)
Author:
Compass <pan.luo@…>
Branches:
3.1.x, dev, hotfix, master, pagodabox, ticket463
Children:
7fc2072
Parents:
c7f6777
Message:

fixed undefined index on mixeval result detail view

Location:
app/views/evaluations
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • app/views/evaluations/view_mixeval_evaluation_results.ctp

    rc7f6777 r135d67e  
    5858        <td><?php echo ($allMembersCompleted ? number_format($aveScoreSum / count($groupMembers), 2) : '-')?></td>
    5959    </tr>
    60     <?php if ($allMembersCompleted) {?>
     60    <?php if ($allMembersCompleted): ?>
    6161    <tr class="tablecell2" align="center">
    6262      <form name="evalForm" id="evalForm" method="POST" action="<?php echo $html->url('markEventReviewed') ?>">
     
    7171        <input class="reviewed" type="submit" name="mark_not_reviewed" value="<?php __('Mark Peer Evaluations as Not Reviewed')?>" />
    7272    <?php else: ?>
    73         <input class="reviewed" type="submit" name="mark_reviewed" value="<?php __('Mark Peer Evaluations as Reviewed')?>" />";
     73        <input class="reviewed" type="submit" name="mark_reviewed" value="<?php __('Mark Peer Evaluations as Reviewed')?>" />
    7474    <?php endif; ?>
    75     </td>
    76     </form>
    77   </tr>
    78 <?php } ?>
     75        </td>
     76      </form>
     77    </tr>
     78    <?php endif; ?>
    7979</table>
    8080</div>
  • app/views/evaluations/view_mixeval_evaluation_results_detail.ctp

    rc7f6777 r135d67e  
    6363                            for ($j = 1; $j <= $mixeval['Mixeval']["lickert_question_max"]; $j++) {
    6464                            if (!empty($scoreRecords[$member['User']['id']]['mixeval_question_ave'])) {
    65                                 $criteriaAveGrade = $scoreRecords[$member['User']['id']]['mixeval_question_ave'][$j-1];
     65                                $criteriaAveGrade = $scoreRecords[$member['User']['id']]['mixeval_question_ave'][$j];
    6666                            } else {
    6767                                $criteriaAveGrade = 0;
Note: See TracChangeset for help on using the changeset viewer.