Skip to content
Snippets Groups Projects
Commit 19e6644f authored by catch's avatar catch
Browse files

Issue #1282956 by rickmanelius, pgrond | lyricnz: Fixed Node revision log of '0' is ignored.

parent 70619a11
Branches
Tags
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
......@@ -1073,7 +1073,7 @@ function node_save($node) {
$node->log = '';
}
}
elseif (empty($node->log)) {
elseif (!isset($node->log) || $node->log === '') {
// If we are updating an existing node without adding a new revision, we
// need to make sure $node->log is unset whenever it is empty. As long as
// $node->log is unset, drupal_write_record() will not attempt to update
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment