- Patch #100850 by webchick et al: log field in {node_revisions} table has no default value.

5.x
Dries Buytaert 2006-12-14 14:07:57 +00:00
parent 1a4d5f4206
commit 015319d6b5
1 changed files with 1 additions and 1 deletions

View File

@ -588,7 +588,7 @@ function node_save(&$node) {
'title' => "'%s'", 'body' => "'%s'",
'teaser' => "'%s'", 'timestamp' => '%d',
'uid' => '%d', 'format' => '%d');
if (!empty($node->log)) {
if (!empty($node->log) || $node->is_new) {
// Only store the log message if there's something to store; this prevents
// existing log messages from being unintentionally overwritten by a blank
// message. A new revision will have an empty log message (or $node->log).