Skip to content

Commit

Permalink
Merge pull request #91 from joybrusich/bugfixes
Browse files Browse the repository at this point in the history
Fixes #90 $instance not initiated
  • Loading branch information
Flottertotte authored Aug 24, 2019
2 parents 3bb92ae + e940b47 commit bf1e9da
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions lang/en/enrol_apply.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@
$string['mailtoteacher_suject'] = 'New Enrolment request!';
$string['editdescription'] = 'Textarea description';
$string['comment'] = 'Comment';
$string['applycomment'] = 'Comment';
$string['applymanage'] = 'Manage enrolment applications';

$string['status_desc'] = 'Allow course access of internally enrolled users.';
Expand Down
1 change: 1 addition & 0 deletions lang/en_us/en_us_enrol_apply.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
$string['mailtoteacher_suject'] = 'New enrollment request!';
$string['editdescription'] = 'Textarea description';
$string['comment'] = 'Comment';
$string['applycomment'] = 'Comment';
$string['applymanage'] = 'Manage enrollment applications';

$string['status_desc'] = 'Allow course access of internally enrolled users.';
1 change: 1 addition & 0 deletions manage.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
$context = context_system::instance();
require_capability('enrol/apply:manageapplications', $context);
$pageheading = get_string('confirmusers', 'enrol_apply');
$instance = null;
} else {
$instance = $DB->get_record('enrol', array('id' => $id, 'enrol' => 'apply'), '*', MUST_EXIST);
require_course_login($instance->courseid);
Expand Down
3 changes: 2 additions & 1 deletion renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ public function manage_table($table, $instance) {
'fullname', // Magic happens here: The column heading will automatically be set due to column name 'fullname'.
get_string('email'),
get_string('applydate', 'enrol_apply'),
$instance->customtext2);
get_string('applycomment', 'enrol_apply'),
);
$table->define_columns($columns);
$table->define_headers($headers);

Expand Down

0 comments on commit bf1e9da

Please sign in to comment.