Skip to content

Commit

Permalink
fixed deletion issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Duggan committed Aug 13, 2015
1 parent f402d97 commit e5e976e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Tuba/Organization.pm
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ sub update_rel {
organization_relationship_identifier => $type
);
$map->load(speculative => 1) or return $c->update_error("relationship not found");
$map->delete or return $c->update_error($map->error);
$map->delete(audit_user => $c->audit_user) or return $c->update_error($map->error);
$c->stash(info => "Saved changes.");
}

Expand Down Expand Up @@ -181,7 +181,7 @@ sub merge {
{ organization_identifier => $other->identifier},
{ organization_identifier => $org->identifier })
or die $dbs->errstr;
$org->delete;
$org->delete(audit_user => $c->audit_user);
$dbs->commit or die $dbs->error;
};
if ($@) { return $c->update_error($@) }
Expand Down

0 comments on commit e5e976e

Please sign in to comment.