';
print '';
@@ -307,78 +307,6 @@ print ' | ';
print ' | ';
print "
\n";
-// Activate email notifications
-/*
-print '| ' . $langs->trans("TicketsDisableEmail") . ' | ';
-print '';
-if ($conf->use_javascript_ajax) {
- print ajax_constantonoff('TICKET_DISABLE_ALL_MAILS');
-} else {
- $arrval = array('0' => $langs->trans("No"), '1' => $langs->trans("Yes"));
- print $form->selectarray("TICKET_DISABLE_ALL_MAILS", $arrval, $conf->global->TICKET_DISABLE_ALL_MAILS);
-}
-print ' | ';
-print '';
-print $form->textwithpicto('', $langs->trans("TicketsDisableEmailHelp"), 1, 'help');
-print ' | ';
-print '
';
-
-// Activate log by email
-print '| ' . $langs->trans("TicketsLogEnableEmail") . ' | ';
-print '';
-if ($conf->use_javascript_ajax) {
- print ajax_constantonoff('TICKET_ACTIVATE_LOG_BY_EMAIL');
-} else {
- $arrval = array('0' => $langs->trans("No"), '1' => $langs->trans("Yes"));
- print $form->selectarray("TICKET_ACTIVATE_LOG_BY_EMAIL", $arrval, $conf->global->TICKET_ACTIVATE_LOG_BY_EMAIL);
-}
-print ' | ';
-print '';
-print $form->textwithpicto('', $langs->trans("TicketsLogEnableEmailHelp"), 1, 'help');
-print ' | ';
-print '
';
-*/
-
-// Also send to main email address
-if ($conf->global->MAIN_FEATURES_LEVEL >= 2)
-{
- print '| '.$langs->trans("TicketsEmailAlsoSendToMainAddress").' | ';
- print '';
- if ($conf->use_javascript_ajax) {
- print ajax_constantonoff('TICKET_NOTIFICATION_ALSO_MAIN_ADDRESS');
- } else {
- $arrval = array('0' => $langs->trans("No"), '1' => $langs->trans("Yes"));
- print $form->selectarray("TICKET_NOTIFICATION_ALSO_MAIN_ADDRESS", $arrval, $conf->global->TICKET_NOTIFICATION_ALSO_MAIN_ADDRESS);
- }
- print ' | ';
- print '';
- print $form->textwithpicto('', $langs->trans("TicketsEmailAlsoSendToMainAddressHelp"), 1, 'help');
- print ' | ';
- print '
';
-}
-
-// Limiter la vue des tickets à ceux assignés à l'utilisateur
-/*
-print '| ' . $langs->trans("TicketsLimitViewAssignedOnly") . ' | ';
-print '';
-if ($conf->use_javascript_ajax) {
- print ajax_constantonoff('TICKET_LIMIT_VIEW_ASSIGNED_ONLY');
-} else {
- $arrval = array('0' => $langs->trans("No"), '1' => $langs->trans("Yes"));
- print $form->selectarray("TICKET_LIMIT_VIEW_ASSIGNED_ONLY", $arrval, $conf->global->TICKET_LIMIT_VIEW_ASSIGNED_ONLY);
-}
-print ' | ';
-print '';
-print $form->textwithpicto('', $langs->trans("TicketsLimitViewAssignedOnlyHelp"), 1, 'help');
-print ' | ';
-print '
';
-*/
-
-/*if (!$conf->use_javascript_ajax) {
- print ' | ';
- print '
';
-}*/
-
// Auto assign ticket at user who created it
print '| '.$langs->trans("TicketsAutoAssignTicket").' | ';
print '';
@@ -401,7 +329,7 @@ if (!$conf->use_javascript_ajax) {
}
// Admin var of module
-print load_fiche_titre($langs->trans("Notification"));
+print load_fiche_titre($langs->trans("Notification"), '', '');
print '';
@@ -419,22 +347,6 @@ if (empty($conf->global->FCKEDITOR_ENABLE_MAIL)) {
print "\n";
}
-// Activate log by email
-/*print '| ' . $langs->trans("TicketsLogEnableEmail") . ' | ';
-print '';
-if ($conf->use_javascript_ajax) {
- print ajax_constantonoff('TICKET_ACTIVATE_LOG_BY_EMAIL');
-} else {
- $arrval = array('0' => $langs->trans("No"), '1' => $langs->trans("Yes"));
- print $form->selectarray("TICKET_ACTIVATE_LOG_BY_EMAIL", $arrval, $conf->global->TICKET_ACTIVATE_LOG_BY_EMAIL);
-}
-print ' | ';
-print '';
-print $form->textwithpicto('', $langs->trans("TicketsLogEnableEmailHelp"), 1, 'help');
-print ' | ';
-print ' ';
-*/
-
// @todo Use module notification instead...
// Email d'envoi des notifications
@@ -455,6 +367,24 @@ print $form->textwithpicto('', $langs->trans("TicketEmailNotificationToHelp"), 1
print '';
print '';
+// Also send to main email address
+if ($conf->global->MAIN_FEATURES_LEVEL >= 2)
+{
+ print '| '.$langs->trans("TicketsEmailAlsoSendToMainAddress").' | ';
+ print '';
+ if ($conf->use_javascript_ajax) {
+ print ajax_constantonoff('TICKET_NOTIFICATION_ALSO_MAIN_ADDRESS');
+ } else {
+ $arrval = array('0' => $langs->trans("No"), '1' => $langs->trans("Yes"));
+ print $form->selectarray("TICKET_NOTIFICATION_ALSO_MAIN_ADDRESS", $arrval, $conf->global->TICKET_NOTIFICATION_ALSO_MAIN_ADDRESS);
+ }
+ print ' | ';
+ print '';
+ print $form->textwithpicto('', $langs->trans("TicketsEmailAlsoSendToMainAddressHelp"), 1, 'help');
+ print ' | ';
+ print ' ';
+}
+
// Texte d'introduction
$mail_intro = $conf->global->TICKET_MESSAGE_MAIL_INTRO ? $conf->global->TICKET_MESSAGE_MAIL_INTRO : $langs->trans('TicketMessageMailIntroText');
print ''.$langs->trans("TicketMessageMailIntroLabelAdmin").'';
diff --git a/htdocs/public/ticket/create_ticket.php b/htdocs/public/ticket/create_ticket.php
index a2f87a9dc75..79a0d758de7 100644
--- a/htdocs/public/ticket/create_ticket.php
+++ b/htdocs/public/ticket/create_ticket.php
@@ -349,7 +349,7 @@ $arrayofcss = array('/opensurvey/css/style.css', '/ticket/css/styles.css.php');
llxHeaderTicket($langs->trans("CreateTicket"), "", 0, 0, $arrayofjs, $arrayofcss);
-print '';
+print ' ';
if ($action != "infos_success") {
$formticket->withfromsocid = isset($socid) ? $socid : $user->socid;
diff --git a/htdocs/public/ticket/index.php b/htdocs/public/ticket/index.php
index 37fdf9be219..59515ab2d8a 100644
--- a/htdocs/public/ticket/index.php
+++ b/htdocs/public/ticket/index.php
@@ -67,7 +67,7 @@ $arrayofcss = array('/ticket/css/styles.css.php');
llxHeaderTicket($langs->trans("Tickets"), "", 0, 0, $arrayofjs, $arrayofcss);
-print ' ';
+print ' ';
print ' '.($conf->global->TICKET_PUBLIC_TEXT_HOME ? $conf->global->TICKET_PUBLIC_TEXT_HOME : $langs->trans("TicketPublicDesc")).' ';
print ' | |