forked from Wavyzz/dolibarr
FIX #16533
This commit is contained in:
@@ -4029,7 +4029,7 @@ function img_searchclear($titlealt = 'default', $other = '')
|
|||||||
* @param string $text Text info
|
* @param string $text Text info
|
||||||
* @param integer $infoonimgalt Info is shown only on alt of star picto, otherwise it is show on output after the star picto
|
* @param integer $infoonimgalt Info is shown only on alt of star picto, otherwise it is show on output after the star picto
|
||||||
* @param int $nodiv No div
|
* @param int $nodiv No div
|
||||||
* @param string $admin '1'=Info for admin users. '0'=Info for standard users (change only the look), 'error','xxx'=Other
|
* @param string $admin '1'=Info for admin users. '0'=Info for standard users (change only the look), 'error', 'warning', 'xxx'=Other
|
||||||
* @param string $morecss More CSS ('', 'warning', 'error')
|
* @param string $morecss More CSS ('', 'warning', 'error')
|
||||||
* @param string $textfordropdown Show a text to click to dropdown the info box.
|
* @param string $textfordropdown Show a text to click to dropdown the info box.
|
||||||
* @return string String with info text
|
* @return string String with info text
|
||||||
|
|||||||
@@ -280,12 +280,10 @@ function show_ticket_messaging($conf, $langs, $db, $filterobj, $objcon = '', $no
|
|||||||
// Check parameters
|
// Check parameters
|
||||||
if (!is_object($filterobj) && !is_object($objcon)) dol_print_error('', 'BadParameter');
|
if (!is_object($filterobj) && !is_object($objcon)) dol_print_error('', 'BadParameter');
|
||||||
|
|
||||||
$out = '';
|
|
||||||
$histo = array();
|
$histo = array();
|
||||||
$numaction = 0;
|
$numaction = 0;
|
||||||
$now = dol_now();
|
$now = dol_now();
|
||||||
|
|
||||||
// Open DSI -- Fix order by -- Begin
|
|
||||||
$sortfield_list = explode(',', $sortfield);
|
$sortfield_list = explode(',', $sortfield);
|
||||||
$sortfield_label_list = array('a.id' => 'id', 'a.datep' => 'dp', 'a.percent' => 'percent');
|
$sortfield_label_list = array('a.id' => 'id', 'a.datep' => 'dp', 'a.percent' => 'percent');
|
||||||
$sortfield_new_list = array();
|
$sortfield_new_list = array();
|
||||||
@@ -294,9 +292,8 @@ function show_ticket_messaging($conf, $langs, $db, $filterobj, $objcon = '', $no
|
|||||||
}
|
}
|
||||||
$sortfield_new = implode(',', $sortfield_new_list);
|
$sortfield_new = implode(',', $sortfield_new_list);
|
||||||
|
|
||||||
if (!empty($conf->agenda->enabled))
|
if (!empty($conf->agenda->enabled)) {
|
||||||
{
|
// Search histo on actioncomm
|
||||||
// Recherche histo sur actioncomm
|
|
||||||
if (is_object($objcon) && $objcon->id > 0) {
|
if (is_object($objcon) && $objcon->id > 0) {
|
||||||
$sql = "SELECT DISTINCT a.id, a.label as label,";
|
$sql = "SELECT DISTINCT a.id, a.label as label,";
|
||||||
} else {
|
} else {
|
||||||
@@ -443,7 +440,8 @@ function show_ticket_messaging($conf, $langs, $db, $filterobj, $objcon = '', $no
|
|||||||
$sql = $sql2;
|
$sql = $sql2;
|
||||||
}
|
}
|
||||||
|
|
||||||
//TODO Add limit in nb of results
|
// TODO Add limit in nb of results
|
||||||
|
if ($sql) { // May not be defined if module Agenda is not enabled and mailing module disabled too
|
||||||
$sql .= $db->order($sortfield_new, $sortorder);
|
$sql .= $db->order($sortfield_new, $sortorder);
|
||||||
|
|
||||||
dol_syslog("company.lib::show_actions_done", LOG_DEBUG);
|
dol_syslog("company.lib::show_actions_done", LOG_DEBUG);
|
||||||
@@ -523,6 +521,15 @@ function show_ticket_messaging($conf, $langs, $db, $filterobj, $objcon = '', $no
|
|||||||
} else {
|
} else {
|
||||||
dol_print_error($db);
|
dol_print_error($db);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Set $out to sow events
|
||||||
|
$out = '';
|
||||||
|
|
||||||
|
if (empty($conf->agenda->enabled)) {
|
||||||
|
$langs->loadLangs(array("admin", "errors"));
|
||||||
|
$out = info_admin($langs->trans("WarningModuleXDisabledSoYouMayMissEventHere", $langs->transnoentitiesnoconv("Module2400Name")), 0, 0, 'warning');
|
||||||
|
}
|
||||||
|
|
||||||
if (!empty($conf->agenda->enabled) || (!empty($conf->mailing->enabled) && !empty($objcon->email))) {
|
if (!empty($conf->agenda->enabled) || (!empty($conf->mailing->enabled) && !empty($objcon->email))) {
|
||||||
$delay_warning = $conf->global->MAIN_DELAY_ACTIONS_TODO * 24 * 60 * 60;
|
$delay_warning = $conf->global->MAIN_DELAY_ACTIONS_TODO * 24 * 60 * 60;
|
||||||
|
|||||||
@@ -288,3 +288,4 @@ WarningFailedToAddFileIntoDatabaseIndex=Warning, failed to add file entry into E
|
|||||||
WarningTheHiddenOptionIsOn=Warning, the hidden option <b>%s</b> is on.
|
WarningTheHiddenOptionIsOn=Warning, the hidden option <b>%s</b> is on.
|
||||||
WarningCreateSubAccounts=Warning, you can't create directly a sub account, you must create a third party or an user and assign them an accounting code to find them in this list
|
WarningCreateSubAccounts=Warning, you can't create directly a sub account, you must create a third party or an user and assign them an accounting code to find them in this list
|
||||||
WarningAvailableOnlyForHTTPSServers=Available only if using HTTPS secured connection.
|
WarningAvailableOnlyForHTTPSServers=Available only if using HTTPS secured connection.
|
||||||
|
WarningModuleXDisabledSoYouMayMissEventHere=Module %s has not been enabled. So you may miss a lot of event here.
|
||||||
Reference in New Issue
Block a user