Changeset aeda818 in iPeer


Ignore:
Timestamp:
2012-12-20T16:26:36-08:00 (5 years ago)
Author:
Michael Tang <michael.tang@…>
Branches:
3.1.x, dev, hotfix, master, pagodabox, ticket463
Children:
7d6c288
Parents:
b2a3dee
Message:

fixed invalid index bugs

rubrics basic result page - invalid index - probably the structure

of the data has been changed

#437 on trac

File:
1 edited

Legend:

Unmodified
Added
Removed
  • app/models/course.php

    rb2a3dee raeda818  
    432432    {
    433433        $options['conditions']['Department.id'] = $departmentIds;
    434         $options['contain'] = array_merge(array('Department'), $options['contain']);
     434        if(isset($options['contain'])) {
     435                $options['contain'] = array_merge(array('Department'), $options['contain']);
     436        } else {
     437                $options['contain'] = array('Department');
     438        }
    435439        if ($findType == 'list') {
    436440            $courses = $this->find('all', $options);
Note: See TracChangeset for help on using the changeset viewer.