Commit 4a689a99 authored by Gerhard Killesreiter's avatar Gerhard Killesreiter

#55493, Editing an existing book page kills Drupal, patch by chx

parent cef7ca77
......@@ -248,7 +248,7 @@ function book_validate($node) {
*/
function book_form(&$node) {
if ($node->nid && !$node->parent && !user_access('create new books')) {
$form['parent'] = array('#type' => 'value', $node->parent);
$form['parent'] = array('#type' => 'value', '#value' => $node->parent);
}
else {
$form['parent'] = array('#type' => 'select',
......
......@@ -248,7 +248,7 @@ function book_validate($node) {
*/
function book_form(&$node) {
if ($node->nid && !$node->parent && !user_access('create new books')) {
$form['parent'] = array('#type' => 'value', $node->parent);
$form['parent'] = array('#type' => 'value', '#value' => $node->parent);
}
else {
$form['parent'] = array('#type' => 'select',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment