Skip to content
Snippets Groups Projects
Commit 42a60041 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Fix: Regression with favorite.

parent 4df9fb38
No related branches found
No related tags found
No related merge requests found
......@@ -680,7 +680,7 @@ if ($action == $acts[1])
}
// favorite
if ($action == $acts[0])
if ($action == 'activate_favorite')
{
if ($tabrowid[$id]) { $rowidcol=$tabrowid[$id]; }
else { $rowidcol="rowid"; }
......@@ -700,7 +700,7 @@ if ($action == $acts[0])
}
// disable favorite
if ($action == $acts[1])
if ($action == 'disable_favorite')
{
if ($tabrowid[$id]) { $rowidcol=$tabrowid[$id]; }
else { $rowidcol="rowid"; }
......@@ -1193,7 +1193,7 @@ if ($id)
if ($id == 4)
{
print '<td align="center" class="nowrap">';
if ($iserasable) print '<a href="'.$url.'action='.$acts[$obj->favorite].'">'.$actl[$obj->favorite].'</a>';
if ($iserasable) print '<a href="'.$url.'action='.$acts[$obj->favorite].'_favorite">'.$actl[$obj->favorite].'</a>';
else print $langs->trans("AlwaysActive");
print '</td>';
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment