Changeset 7aaa5e6 in iPeer


Ignore:
Timestamp:
2012-12-24T14:24:23-08:00 (6 years ago)
Author:
Compass <pan.luo@…>
Branches:
3.1.x, dev, hotfix, master, pagodabox, ticket463
Children:
557173a
Parents:
e2c08c8
Message:

Fix editing new group is disabled for instructor

File:
1 edited

Legend:

Unmodified
Added
Removed
  • app/controllers/groups_controller.php

    re2c08c8 r7aaa5e6  
    268268                'fields' => array('GroupEvent.id')
    269269            ));
    270         $submissions = $this->EvaluationSubmission->numCountInGroupCompleted($groupEvent);
     270        $submissions = empty($groupEvent) ? false : $this->EvaluationSubmission->numCountInGroupCompleted($groupEvent);
    271271
    272272        $this->set('breadcrumb', $this->breadcrumb->push(array('course' => $course['Course']))
Note: See TracChangeset for help on using the changeset viewer.