summaryrefslogtreecommitdiff
path: root/modules/node/node.pages.inc
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-04-15 13:28:08 +0000
committerDries Buytaert <dries@buytaert.net>2009-04-15 13:28:08 +0000
commitdfff6528ff1aefb054d42a925293751a43c43ff2 (patch)
treefeed6a2a17ad4ac21df700a5ec14577fcf594e60 /modules/node/node.pages.inc
parent852b762231d1280490962951c6c959c1752d8cc0 (diff)
downloadbrdo-dfff6528ff1aefb054d42a925293751a43c43ff2.tar.gz
brdo-dfff6528ff1aefb054d42a925293751a43c43ff2.tar.bz2
- Patch #385602 by Damien Tournoud, desbeers, Gabor Hojtsy: log message sometimes lost on node preview. With a test\!
Diffstat (limited to 'modules/node/node.pages.inc')
-rw-r--r--modules/node/node.pages.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/node/node.pages.inc b/modules/node/node.pages.inc
index c02d70fe5..242fcf658 100644
--- a/modules/node/node.pages.inc
+++ b/modules/node/node.pages.inc
@@ -91,6 +91,8 @@ function node_object_prepare(&$node) {
}
else {
$node->date = format_date($node->created, 'custom', 'Y-m-d H:i:s O');
+ // Remove the log message from the original node object.
+ $node->log = NULL;
}
// Always use the default revision setting.
$node->revision = in_array('revision', $node_options);
@@ -179,6 +181,7 @@ function node_form(&$form_state, $node) {
'#type' => 'textarea',
'#title' => t('Revision log message'),
'#rows' => 4,
+ '#default_value' => !empty($node->log) ? $node->log : '',
'#description' => t('Provide an explanation of the changes you are making. This will help other authors understand your motivations.'),
);
}