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
ede01929
Commit
ede01929
authored
Dec 19, 2006
by
Dries Buytaert
Browse files
- Patch
#104280
by dww: node_form_add_preview() broken if you alter the Preview button at all.
parent
633fcda8
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/node/node.module
View file @
ede01929
...
...
@@ -2045,7 +2045,7 @@ function node_form_add_preview($form) {
global
$form_values
;
$op
=
isset
(
$form_values
[
'op'
])
?
$form_values
[
'op'
]
:
''
;
if
(
$op
==
$form_values
[
'p
review'
]
)
{
if
(
$op
==
t
(
'P
review'
)
)
{
drupal_validate_form
(
$form
[
'form_id'
][
'#value'
],
$form
);
if
(
!
form_get_errors
())
{
// We pass the global $form_values here to preserve changes made during form validation
...
...
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