Skip to content

Commit

Permalink
MDL-20625 fixed transaction related todos
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Nov 8, 2009
1 parent 088f3ff commit 6ccaf3f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions group/externallib.php
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +239,7 @@ public static function delete_groups($groupids) {

$transaction = $DB->start_delegated_transaction();

// TODO: this is problematic because the DB rollback does not handle deleting of images!!
// there is also potential problem with events propagating action to external systems :-(
// TODO: this is problematic because the DB rollback does not handle deleting of group images!
foreach ($params['groupids'] as $groupid) {
// validate params
$groupid = validate_param($groupid, PARAM_INTEGER);
Expand Down Expand Up @@ -354,7 +353,6 @@ public static function add_groupmembers($members) {
$params = self::validate_parameters(self::add_groupmembers_parameters(), array('members'=>$members));

$transaction = $DB->start_delegated_transaction();
// TODO: there is a potential problem with events propagating action to external systems :-(
foreach ($params['members'] as $member) {
// validate params
$groupid = $member['groupid'];
Expand Down Expand Up @@ -419,7 +417,6 @@ public static function delete_groupmembers($members) {

$transaction = $DB->start_delegated_transaction();

// TODO: there is a potential problem with events propagating action to external systems :-(
foreach ($params['members'] as $member) {
// validate params
$groupid = $member['groupid'];
Expand Down

0 comments on commit 6ccaf3f

Please sign in to comment.