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

Fix: Clear of list broken

parent 37119e70
No related branches found
No related tags found
No related merge requests found
...@@ -113,7 +113,7 @@ if ($action == 'add') ...@@ -113,7 +113,7 @@ if ($action == 'add')
} }
} }
if ($action == 'clear') if (GETPOST('clearlist'))
{ {
// Chargement de la classe // Chargement de la classe
$classname = "MailingTargets"; $classname = "MailingTargets";
...@@ -375,7 +375,7 @@ if ($object->fetch($id) >= 0) ...@@ -375,7 +375,7 @@ if ($object->fetch($id) >= 0)
if ($search_firstname) $param.= "&search_firstname=".urlencode($search_firstname); if ($search_firstname) $param.= "&search_firstname=".urlencode($search_firstname);
if ($search_email) $param.= "&search_email=".urlencode($search_email); if ($search_email) $param.= "&search_email=".urlencode($search_email);
$cleartext='<br></div><div>'.$langs->trans("ToClearAllRecipientsClickHere").': '.'<input type="submit" class="button" value="'.$langs->trans("TargetsReset").'">'; $cleartext='<br></div><div>'.$langs->trans("ToClearAllRecipientsClickHere").': '.'<input type="submit" name="clearlist" class="button" value="'.$langs->trans("TargetsReset").'">';
print_barre_liste($langs->trans("MailSelectedRecipients").$cleartext,$page,$_SERVER["PHP_SELF"],$param,$sortfield,$sortorder,"",$num,$object->nbemail,''); print_barre_liste($langs->trans("MailSelectedRecipients").$cleartext,$page,$_SERVER["PHP_SELF"],$param,$sortfield,$sortorder,"",$num,$object->nbemail,'');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment