From c3f9c27560ebc9379ec649fd654d22a363bcc2b8 Mon Sep 17 00:00:00 2001 From: Dan Marsden Date: Mon, 26 Feb 2018 14:36:34 +1300 Subject: [PATCH] Add missing string and fix upgrade previous value. --- db/upgrade.php | 2 +- lang/en/attendance.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/db/upgrade.php b/db/upgrade.php index 82bdcd9..f5051e0 100644 --- a/db/upgrade.php +++ b/db/upgrade.php @@ -480,7 +480,7 @@ function xmldb_attendance_upgrade($oldversion=0) { if ($oldversion < 2018022204) { $table = new xmldb_table('attendance'); - $field = new xmldb_field('showextrauserdetails', XMLDB_TYPE_INTEGER, '1', XMLDB_UNSIGNED, XMLDB_NOTNULL, null, '1', 'subnet'); + $field = new xmldb_field('showextrauserdetails', XMLDB_TYPE_INTEGER, '1', XMLDB_UNSIGNED, XMLDB_NOTNULL, null, '1', 'showsessiondetails'); if (!$dbman->field_exists($table, $field)) { $dbman->add_field($table, $field); } diff --git a/lang/en/attendance.php b/lang/en/attendance.php index 11301c3..1f78da3 100644 --- a/lang/en/attendance.php +++ b/lang/en/attendance.php @@ -224,6 +224,7 @@ $string['hiddensessions_help'] = 'Sessions are hidden if they are scheduled befo You can use this feature to hide older sessions instead of deleting them. Only visible sessions will appear in the Gradebook.'; $string['hiddensessionsdeleted'] = 'All hidden sessions were delete'; +$string['hideextrauserdetails'] = 'Hide extra user details'; $string['hidensessiondetails'] = 'Hide session details'; $string['import'] = 'Import'; $string['importfile'] = 'Import file';