mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-59368 groups: Add behat for new group edit
This commit is contained in:
parent
090d064dda
commit
76c493b3f2
7 changed files with 27 additions and 11 deletions
|
@ -72,6 +72,8 @@ class user_groups_editable extends \core\output\inplace_editable {
|
|||
foreach ($coursegroups as $group) {
|
||||
$options[$group->id] = $group->name;
|
||||
}
|
||||
$this->edithint = get_string('editusersgroupsa', 'group', fullname($user));
|
||||
$this->editlabel = get_string('editusersgroupsa', 'group', fullname($user));
|
||||
|
||||
$attributes = ['multiple' => true];
|
||||
$this->set_type_autocomplete($options, $attributes);
|
||||
|
@ -84,9 +86,6 @@ class user_groups_editable extends \core\output\inplace_editable {
|
|||
* @return \stdClass
|
||||
*/
|
||||
public function export_for_template(\renderer_base $output) {
|
||||
// Set edithint and display value.
|
||||
$this->edithint = get_string('editusersgroups', 'group');
|
||||
|
||||
$listofgroups = [];
|
||||
$groupids = json_decode($this->value);
|
||||
foreach ($groupids as $id) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue