[ticket/349] Pass link_id to form when submitting edited link

B3P-349
This commit is contained in:
Marc Alexander
2014-08-24 23:19:35 +02:00
parent 55c4a06f99
commit 52c668eba1
5 changed files with 17 additions and 5 deletions

View File

@@ -467,8 +467,7 @@ class main_menu extends module_base
'LINK_TITLE' => (isset($links[$link_id]['title']) && $action != 'add') ? $links[$link_id]['title'] : '',
'LINK_URL' => (isset($links[$link_id]['url']) && $links[$link_id]['type'] != self::LINK_CAT && $action != 'add') ? str_replace('&', '&', $links[$link_id]['url']) : '',
//'U_BACK' => $u_action,
'U_ACTION' => $u_action . '&id=' . $link_id,
'LINK_ID' => $link_id,
'S_EDIT' => true,
'S_LINK_IS_CAT' => (!isset($links[$link_id]['type']) || $links[$link_id]['type'] == self::LINK_CAT) ? true : false,