Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
6cee2bc5
Commit
6cee2bc5
authored
Nov 17, 2006
by
Dries Buytaert
Browse files
- We were still dealing with the quality of the code comments when
#87474
got committed. Trying to merge in some stuff manually.
parent
28e352c6
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/node/node.module
View file @
6cee2bc5
...
...
@@ -578,8 +578,9 @@ function node_save(&$node) {
'teaser'
=>
"'%s'"
,
'timestamp'
=>
'%d'
,
'uid'
=>
'%d'
,
'format'
=>
'%d'
);
if
(
!
empty
(
$node
->
log
))
{
// Only store the log message if there's something to store; this prevents existing
// log messages from being unintentionally overwritten by a blank message.
// 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).
$revisions_table_values
[
'log'
]
=
$node
->
log
;
$revisions_table_types
[
'log'
]
=
"'%s'"
;
}
...
...
@@ -1960,7 +1961,7 @@ function node_form($node, $form_values = NULL) {
}
$form
[
'#node'
]
=
$node
;
// Add a log field if the "Create new revision
s
" option is checked, or if the
// Add a log field if the "Create new revision" option is checked, or if the
// current user has the ability to check that option.
if
(
$node
->
revision
||
user_access
(
'administer nodes'
))
{
$form
[
'log'
]
=
array
(
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment