Fix missing token
This commit is contained in:
parent
3fb69f8ec0
commit
eed14ad6e1
@ -2056,7 +2056,7 @@ if ($id) {
|
||||
if ($id == 4) {
|
||||
print '<td class="nowrap center">';
|
||||
if ($iserasable) {
|
||||
print '<a class="reposition" href="'.$url.'action='.$acts[$obj->favorite].'_favorite">'.$actl[$obj->favorite].'</a>';
|
||||
print '<a class="reposition" href="'.$url.'action='.$acts[$obj->favorite].'_favorite&token='.newToken().'">'.$actl[$obj->favorite].'</a>';
|
||||
} else {
|
||||
print $langs->trans("AlwaysActive");
|
||||
}
|
||||
@ -2066,7 +2066,7 @@ if ($id) {
|
||||
// Active
|
||||
print '<td class="nowrap center">';
|
||||
if ($canbedisabled) {
|
||||
print '<a class="reposition" href="'.$url.'action='.$acts[$obj->active].'">'.$actl[$obj->active].'</a>';
|
||||
print '<a class="reposition" href="'.$url.'action='.$acts[$obj->active].'&token='.newToken().'">'.$actl[$obj->active].'</a>';
|
||||
} else {
|
||||
if (in_array($obj->code, array('AC_OTH', 'AC_OTH_AUTO'))) {
|
||||
print $langs->trans("AlwaysActive");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user