Clear board auto actions on board delete. Fixes #179.

This commit is contained in:
Matthew Ross 2015-06-27 12:31:15 -04:00
parent deaf648f1d
commit eeaea7038e

View File

@ -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 . '.');