FIX syntax error, missing token in url
This commit is contained in:
parent
1cc7b41de3
commit
1653e17181
@ -278,13 +278,13 @@ print "<div class='tabsAction'>\n";
|
||||
|
||||
if ($user->rights->categorie->creer)
|
||||
{
|
||||
$socid = ($object->socid ? "&socid=".$object->socid : "");
|
||||
print "<a class='butAction' href='edit.php?id=".$object->id.$socid."&type=".$type."'>".$langs->trans("Modify")."</a>";
|
||||
$socid = ($object->socid ? "&socid=".$object->socid : "");
|
||||
print "<a class='butAction' href='edit.php?id=".$object->id.$socid."&type=".$type."'>".$langs->trans("Modify")."</a>";
|
||||
}
|
||||
|
||||
if ($user->rights->categorie->supprimer)
|
||||
{
|
||||
print "<a class='butActionDelete' href='".DOL_URL_ROOT."/categories/viewcat.php?action=delete&token='.newToken().'&id=".$object->id."&type=".$type."'>".$langs->trans("Delete")."</a>";
|
||||
print "<a class='butActionDelete' href='".$_SERVER["PHP_SELF"]."?action=delete&token=".newToken()."&id=".$object->id."&type=".$type."'>".$langs->trans("Delete")."</a>";
|
||||
}
|
||||
|
||||
print "</div>";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user