Ignore:
Timestamp:
May 2, 2016, 12:09:23 PM (3 years ago)
Author:
jrpelegrina
Message:

Updated to moodle 3.0.3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • moodle/trunk/fuentes/enrol/users_forms.php

    r136 r1331  
    100100        $mform->addElement('header','general', fullname($user));
    101101
    102         $mform->addElement('select', 'groupid', get_string('addgroup', 'group'), $options);
     102        $mform->addElement('select', 'groupids', get_string('addgroup', 'group'), $options, array('multiple' => 'multiple'));
     103        $mform->addRule('groupids', null, 'required');
    103104
    104105        $mform->addElement('hidden', 'id');
     
    167168        $allgroups = $manager->get_all_groups();
    168169        $groupsmenu[0] = get_string('allparticipants');
     170        $groupsmenu[-1] = get_string('nogroup', 'enrol');
    169171        foreach($allgroups as $gid => $unused) {
    170172            $groupsmenu[$gid] = $allgroups[$gid]->name;
     
    191193        $mform->addElement('hidden', 'id', $this->_customdata['id']);
    192194        $mform->setType('id', PARAM_INT);
     195        $mform->addElement('hidden', 'newcourse', $this->_customdata['newcourse']);
     196        $mform->setType('newcourse', PARAM_BOOL);
    193197    }
    194198}
Note: See TracChangeset for help on using the changeset viewer.