diff --git a/htdocs/bookmarks/card.php b/htdocs/bookmarks/card.php index 198247bb355..207395c267b 100644 --- a/htdocs/bookmarks/card.php +++ b/htdocs/bookmarks/card.php @@ -46,6 +46,9 @@ $position = GETPOST("position", "int"); $backtopage = GETPOST('backtopage', 'alpha'); $object = new Bookmark($db); +if ($id > 0) { + $object->fetch($id); +} /* @@ -133,7 +136,7 @@ $form = new Form($db); $head = array(); $h = 1; -$head[$h][0] = $_SERVER["PHP_SELF"].($object->id ? 'id='.$object->id : ''); +$head[$h][0] = $_SERVER["PHP_SELF"].($object->id ? '?id='.$object->id : ''); $head[$h][1] = $langs->trans("Bookmark"); $head[$h][2] = 'card'; $h++; @@ -157,20 +160,20 @@ if ($action == 'create') { print '
| '.$langs->trans("BookmarkTitle").' | '.$langs->trans("SetHereATitleForLink").' | |
| '.$langs->trans("BookmarkTitle").' | '.$langs->trans("SetHereATitleForLink").' | |
| '.$langs->trans("UrlOrLink").' | '.$langs->trans("UseAnExternalHttpLinkOrRelativeDolibarrLink").' | |
| '.$langs->trans("UrlOrLink").' | '.$langs->trans("UseAnExternalHttpLinkOrRelativeDolibarrLink").' | |
| '.$langs->trans("BehaviourOnClick").' | '; $liste = array(0=>$langs->trans("ReplaceWindow"), 1=>$langs->trans("OpenANewWindow")); print $form->selectarray('target', $liste, 1); - print ' | '.$langs->trans("ChooseIfANewWindowMustBeOpenedOnClickOnBookmark").' | '.$langs->trans("ChooseIfANewWindowMustBeOpenedOnClickOnBookmark").' | '; // Owner - print '
| '.$langs->trans("Owner").' | '; + print ' | |
| '.$langs->trans("Visibility").' | '; 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 ' |