diff --git a/htdocs/comm/mailing/advtargetemailing.php b/htdocs/comm/mailing/advtargetemailing.php index 78729f0d737..cd803c36e5d 100644 --- a/htdocs/comm/mailing/advtargetemailing.php +++ b/htdocs/comm/mailing/advtargetemailing.php @@ -617,11 +617,9 @@ if ($object->fetch($id) >= 0) { print dol_get_fiche_end(); - print '
'; - // Show email selectors - if ($object->status == 0 && $user->hasRight('mailing', 'creer')) { + if ($object->status < 2 && $user->hasRight('mailing', 'creer')) { // @phan-assert FormAdvTargetEmailing $formadvtargetemaling // @phan-assert AdvanceTargetingMailing $advTarget @@ -666,7 +664,9 @@ if ($object->fetch($id) >= 0) { '; - print load_fiche_titre($langs->trans("AdvTgtTitle").'...', '', ''); + print '
'; + print $langs->trans("AdvTgtTitle").'...'; + print '
'; print '
'."\n"; print ''."\n"; @@ -709,7 +709,7 @@ if ($object->fetch($id) >= 0) { // Customer name print ''.$langs->trans('ThirdPartyName'); if (!empty($array_query['cust_name'])) { - print img_picto($langs->trans('AdvTgtUse'), 'ok.png@advtargetemailing'); + print img_picto($langs->trans('AdvTgtUse'), 'tick', 'class="marginleftonly"'); } print ''."\n"; print $form->textwithpicto('', $langs->trans("AdvTgtSearchTextHelp"), 1, 'help'); diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index adb23f19f6d..1ee8a5a337d 100644 --- a/htdocs/main.inc.php +++ b/htdocs/main.inc.php @@ -380,6 +380,7 @@ if ((!defined('NOCSRFCHECK') && empty($dolibarr_nocsrfcheck) && getDolGlobalInt( 'editfile', 'editvalidator', 'file_manager', + 'getCategories', 'history', 'presend', 'presend_addmessage',