Changeset baf8708 in iPeer


Ignore:
Timestamp:
2013-01-04T13:35:10-08:00 (5 years ago)
Author:
Compass <pan.luo@…>
Branches:
3.1.x, dev, hotfix, master, pagodabox, ticket463
Children:
4b3e31b, 52c1120, 5790ff5
Parents:
abdf8bc
Message:

Fix 4432df6 where the change failed group add

File:
1 edited

Legend:

Unmodified
Added
Removed
  • app/views/groups/edit.ctp

    rabdf8bc rbaf8708  
    22<?php $readonly = isset($readonly) ? $readonly : false;?>
    33<?php $status = (isset($submissions) && $submissions > 0 && !User::hasPermission('functions/superadmin')) ? 'disabled' : '';?>
     4<?php $id = $this->action == 'add' ? $course_id : $group_id; ?>
    45
    56<div class="content-container">
     
    78echo $this->Form->create('Group',
    89    array('id' => 'frm',
    9     'url' => array('action' => $this->action.'/'.$group_id),
     10    'url' => array('action' => $this->action.'/'.$id),
    1011));
    1112echo isset($group_id) ? $this->Form->hidden('Group.id', array('value' => $group_id)):'';
Note: See TracChangeset for help on using the changeset viewer.