diff --git a/htdocs/comm/mailing/cibles.php b/htdocs/comm/mailing/cibles.php index c533a01c5c5..08b0e150227 100644 --- a/htdocs/comm/mailing/cibles.php +++ b/htdocs/comm/mailing/cibles.php @@ -113,7 +113,7 @@ if ($action == 'add') } } -if ($action == 'clear') +if (GETPOST('clearlist')) { // Chargement de la classe $classname = "MailingTargets"; @@ -375,7 +375,7 @@ if ($object->fetch($id) >= 0) if ($search_firstname) $param.= "&search_firstname=".urlencode($search_firstname); if ($search_email) $param.= "&search_email=".urlencode($search_email); - $cleartext='
'.$langs->trans("ToClearAllRecipientsClickHere").': '.''; + $cleartext='
'.$langs->trans("ToClearAllRecipientsClickHere").': '.''; print_barre_liste($langs->trans("MailSelectedRecipients").$cleartext,$page,$_SERVER["PHP_SELF"],$param,$sortfield,$sortorder,"",$num,$object->nbemail,''); diff --git a/htdocs/core/class/html.formother.class.php b/htdocs/core/class/html.formother.class.php index c3157c07124..c2d3a7c32c2 100644 --- a/htdocs/core/class/html.formother.class.php +++ b/htdocs/core/class/html.formother.class.php @@ -544,68 +544,73 @@ class FormOther */ function selectColor($set_color='', $prefix='f_color', $form_name='objForm', $showcolorbox=1, $arrayofcolors='', $morecss='') { - global $langs; + global $langs,$conf; $out=''; if (! is_array($arrayofcolors) || count($arrayofcolors) < 1) { $langs->load("other"); - $out.= ''; - $out.= ''; - $out.= ''; + if (empty($conf->dol_use_jmobile)) + { + $out.= ''; + $out.= ''; + $out.= ''; + } $out.= ''; } else // In most cases, this is not used. We used instead function with no specific list of colors { - $out.= ''; - $out.= ''; - $out.= ''; - + if (empty($conf->dol_use_jmobile)) + { + $out.= ''; + $out.= ''; + $out.= ''; + } $out.= '