Thank you for this module!
I have tried module, and my experience was that the database query in function menu_clone_clone_form_submit is wrong.

Original version:

function menu_clone_clone_form_submit($form, &$form_state) {
  $menu = $form_state['values'];
  $path = 'admin/structure/menu/manage/';
  $menu['menu_name'] = 'menu-' . $menu['menu_name'];
  $link['link_title'] = $menu['title'];
  $link['link_path'] = $path . $menu['menu_name'];
  $link['router_path'] = $path . '%';
  $link['module'] = 'menu';
  $link['plid'] = db_query("SELECT mlid FROM {menu_links} WHERE link_path = :link_path AND module = :module", array(':link_path' => 'admin/build/menu', ':module' => 'system'))->fetchField();

I think, this is the right solution:

function menu_clone_clone_form_submit($form, &$form_state) {
  $menu = $form_state['values'];
  $path = 'admin/structure/menu/manage/';
  $menu['menu_name'] = 'menu-' . $menu['menu_name'];
  $link['link_title'] = $menu['title'];
  $link['link_path'] = $path . $menu['menu_name'];
  $link['router_path'] = $path . '%';
  $link['module'] = 'menu';
  $link['plid'] = db_query("SELECT mlid FROM {menu_links} WHERE link_path = :link_path AND module = :module", array(':link_path' => 'admin/structure/menu', ':module' => 'system'))->fetchField();

Comments

malc0mn’s picture

Version: 7.x-1.x-dev » 7.x-1.0-beta1

Please retest with the latest release and let me know if this is fixed now...

malc0mn’s picture

Assigned: Unassigned » malc0mn
Status: Active » Fixed

This is definitely fixed with the new port from scratch...

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.