Browse Source

Fixed renaming's regression. Thanks Marty Gilbert.

MOODLE_23_STABLE
Artem Andreev 13 years ago
parent
commit
81e461d75c
  1. 2
      preferences.php
  2. 4
      sessions.php

2
preferences.php

@ -78,7 +78,7 @@ switch ($att->pageparams->action) {
foreach ($acronym as $id => $v) { foreach ($acronym as $id => $v) {
$att->update_status($id, $acronym[$id], $description[$id], $grade[$id], null); $att->update_status($id, $acronym[$id], $description[$id], $grade[$id], null);
} }
update_all_users_grades($att->id, $att->course, $att->context); att_update_all_users_grades($att->id, $att->course, $att->context);
break; break;
} }

4
sessions.php

@ -72,7 +72,7 @@ switch ($att->pageparams->action) {
if (isset($confirm)) { if (isset($confirm)) {
$att->delete_sessions(array($sessionid)); $att->delete_sessions(array($sessionid));
update_all_users_grades($att->id, $att->course, $att->context); att_update_all_users_grades($att->id, $att->course, $att->context);
redirect($att->url_manage(), get_string('sessiondeleted','attforblock')); redirect($att->url_manage(), get_string('sessiondeleted','attforblock'));
} }
@ -99,7 +99,7 @@ switch ($att->pageparams->action) {
$sessionsids = explode('_', $sessionsids); $sessionsids = explode('_', $sessionsids);
$att->delete_sessions($sessionsids); $att->delete_sessions($sessionsids);
update_all_users_grades($att->id, $att->course, $att->context); att_update_all_users_grades($att->id, $att->course, $att->context);
redirect($att->url_manage(), get_string('sessiondeleted','attforblock')); redirect($att->url_manage(), get_string('sessiondeleted','attforblock'));
} }

Loading…
Cancel
Save