diff --git a/htdocs/bookmarks/card.php b/htdocs/bookmarks/card.php index f71a750027f..198247bb355 100644 --- a/htdocs/bookmarks/card.php +++ b/htdocs/bookmarks/card.php @@ -153,7 +153,7 @@ if ($action == 'create') { print load_fiche_titre($langs->trans("NewBookmark")); - print dol_get_fiche_head($head, $hselected, $langs->trans("Bookmark"), 0, 'bookmark'); + print dol_get_fiche_head($head, $hselected, $langs->trans("Bookmark"), -1, 'bookmark'); print ''; @@ -171,7 +171,7 @@ if ($action == 'create') { // Owner print ''; // Position @@ -193,20 +193,8 @@ if ($action == 'create') { if ($id > 0 && !preg_match('/^add/i', $action)) { - /* - * Fact bookmark mode or visually edition - */ $object->fetch($id); - $hselected = 'card'; - $head = array( - array( - '', - $langs->trans('Card'), - 'card' - ) - ); - if ($action == 'edit') { print ''; print ''; @@ -216,7 +204,6 @@ if ($id > 0 && !preg_match('/^add/i', $action)) { print ''; } - print dol_get_fiche_head($head, $hselected, $langs->trans("Bookmark"), -1, 'bookmark'); $linkback = ''.$langs->trans("BackToList").'';
'.$langs->trans("Owner").''; - print img_picto('', 'user').' '.$form->select_dolusers(GETPOSTISSET('userid') ? GETPOST('userid', 'int') : $user->id, 'userid', 0, '', 0, GETPOSTISSET('userid') ? GETPOST('userid', 'int') : array($user->id), '', 0, 0, 0, '', ($user->admin) ? 1 : 0, '', 'maxwidth300'); + print img_picto('', 'user').' '.$form->select_dolusers(GETPOSTISSET('userid') ? GETPOST('userid', 'int') : $user->id, 'userid', 0, '', 0, ($user->admin ? '' : array($user->id)), '', 0, 0, 0, '', ($user->admin) ? 1 : 0, '', 'maxwidth300'); print '