Commit f5253a89 authored by Dries's avatar Dries
Browse files

- Patch #39440 by Richard: no circular references.

parent b1a648b3
......@@ -622,7 +622,7 @@ function menu_node_form($edit = array()) {
$form['menu']['title'] = array('#type' => 'textfield', '#title' => t('Title'), '#default_value' => $item['title'], '#description' => t('The name to display for this link.'));
// Generate a list of possible parents (not including this item or descendants).
$options = menu_parent_options($edit['mid']);
$options = menu_parent_options($item['mid']);
$form['menu']['pid'] = array('#type' => select, '#title' => t('Parent item'), '#default_value' => $item['pid'], '#options' => $options);
$form['menu']['description'] = array('#type' => 'hidden', '#value' => $item['description']);
$form['menu']['path'] = array('#type' => 'hidden', '#value' => $item['path']);
......
......@@ -622,7 +622,7 @@ function menu_node_form($edit = array()) {
$form['menu']['title'] = array('#type' => 'textfield', '#title' => t('Title'), '#default_value' => $item['title'], '#description' => t('The name to display for this link.'));
// Generate a list of possible parents (not including this item or descendants).
$options = menu_parent_options($edit['mid']);
$options = menu_parent_options($item['mid']);
$form['menu']['pid'] = array('#type' => select, '#title' => t('Parent item'), '#default_value' => $item['pid'], '#options' => $options);
$form['menu']['description'] = array('#type' => 'hidden', '#value' => $item['description']);
$form['menu']['path'] = array('#type' => 'hidden', '#value' => $item['path']);
......
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