Clear board auto actions on board delete. Fixes #179.
This commit is contained in:
parent
deaf648f1d
commit
eeaea7038e
@ -76,6 +76,7 @@ $app->post('/boards/remove', function() use($app, $jsonResponse) {
|
||||
}
|
||||
R::trashAll($board->xownLane);
|
||||
R::trashAll($board->xownCategory);
|
||||
R::trashAll($board->xownAutoaction);
|
||||
R::trash($board);
|
||||
R::exec('DELETE from board_user WHERE board_id = ?', [$data->boardId]);
|
||||
$jsonResponse->addAlert('success', 'Removed board ' . $board->name . '.');
|
||||
|
Reference in New Issue
Block a user