Skip to content

Commit

Permalink
Fix by common code
Browse files Browse the repository at this point in the history
  • Loading branch information
s-nakajima committed Apr 28, 2015
1 parent a720441 commit af87833
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions Model/Bbs.php
Original file line number Diff line number Diff line change
Expand Up @@ -244,11 +244,6 @@ public function deleteBbs($data) {
//Blockデータ削除
$this->Block->deleteBlock($data['Block']['key']);

//BlockRolePermissionデータ削除
if (! $this->BlockRolePermission->deleteAll(array($this->BlockRolePermission->alias . '.block_key' => $data['Block']['key']), true)) {
throw new InternalErrorException(__d('net_commons', 'Internal Server Error'));
}

//トランザクションCommit
$dataSource->commit();

Expand Down

0 comments on commit af87833

Please sign in to comment.