Skip to content
Snippets Groups Projects
Commit d6217df8 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #721378 by jpmckinney, cha0s, casey, noahb: critical bug: comment_save() fails silently.

parent 3c3cee28
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -1512,6 +1512,7 @@ function comment_save($comment) { ...@@ -1512,6 +1512,7 @@ function comment_save($comment) {
} }
catch (Exception $e) { catch (Exception $e) {
$transaction->rollback('comment', $e->getMessage(), array(), WATCHDOG_ERROR); $transaction->rollback('comment', $e->getMessage(), array(), WATCHDOG_ERROR);
throw $e;
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment