mirror of
https://we.phorge.it/source/phorge.git
synced 2025-01-24 13:38:19 +01:00
parent
698ec68327
commit
83d6bbeb29
1 changed files with 4 additions and 2 deletions
|
@ -49,8 +49,10 @@ final class HeraldDeleteController extends HeraldController {
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($request->isFormPost()) {
|
if ($request->isFormPost()) {
|
||||||
$rule->logEdit($user->getPHID(), 'delete');
|
$rule->openTransaction();
|
||||||
$rule->delete();
|
$rule->logEdit($user->getPHID(), 'delete');
|
||||||
|
$rule->delete();
|
||||||
|
$rule->saveTransaction();
|
||||||
return id(new AphrontReloadResponse())->setURI('/herald/');
|
return id(new AphrontReloadResponse())->setURI('/herald/');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue