Merge branch '9.0' of git@github.com:Dolibarr/dolibarr.git into 10.0
Conflicts: htdocs/comm/action/class/actioncomm.class.php htdocs/core/lib/company.lib.php
This commit is contained in:
commit
18886c701d
@ -1287,7 +1287,9 @@ class ActionComm extends CommonObject
|
|||||||
if (! empty($conf->dol_no_mouse_hover)) $notooltip=1; // Force disable tooltips
|
if (! empty($conf->dol_no_mouse_hover)) $notooltip=1; // Force disable tooltips
|
||||||
|
|
||||||
if ((!$user->rights->agenda->allactions->read && $this->authorid != $user->id) || (!$user->rights->agenda->myactions->read && $this->authorid == $user->id))
|
if ((!$user->rights->agenda->allactions->read && $this->authorid != $user->id) || (!$user->rights->agenda->myactions->read && $this->authorid == $user->id))
|
||||||
|
{
|
||||||
$option = 'nolink';
|
$option = 'nolink';
|
||||||
|
}
|
||||||
|
|
||||||
$label = $this->label;
|
$label = $this->label;
|
||||||
if (empty($label)) $label=$this->libelle; // For backward compatibility
|
if (empty($label)) $label=$this->libelle; // For backward compatibility
|
||||||
|
|||||||
@ -1241,7 +1241,7 @@ function show_actions_done($conf, $langs, $db, $filterobj, $objcon = '', $noprin
|
|||||||
if (! empty($conf->agenda->enabled))
|
if (! empty($conf->agenda->enabled))
|
||||||
{
|
{
|
||||||
// Recherche histo sur actioncomm
|
// Recherche histo sur actioncomm
|
||||||
if (is_object($objcon) && $objcon->id) {
|
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
|
||||||
@ -1266,7 +1266,7 @@ function show_actions_done($conf, $langs, $db, $filterobj, $objcon = '', $noprin
|
|||||||
$sql.= " LEFT JOIN ".MAIN_DB_PREFIX."c_actioncomm as c ON a.fk_action = c.id";
|
$sql.= " LEFT JOIN ".MAIN_DB_PREFIX."c_actioncomm as c ON a.fk_action = c.id";
|
||||||
|
|
||||||
$force_filter_contact = false;
|
$force_filter_contact = false;
|
||||||
if (is_object($objcon) && $objcon->id) {
|
if (is_object($objcon) && $objcon->id > 0) {
|
||||||
$force_filter_contact = true;
|
$force_filter_contact = true;
|
||||||
$sql.= " INNER JOIN ".MAIN_DB_PREFIX."actioncomm_resources as r ON a.id = r.fk_actioncomm";
|
$sql.= " INNER JOIN ".MAIN_DB_PREFIX."actioncomm_resources as r ON a.id = r.fk_actioncomm";
|
||||||
$sql.= " AND r.element_type = '" . $db->escape($objcon->table_element) . "' AND r.fk_element = " . $objcon->id;
|
$sql.= " AND r.element_type = '" . $db->escape($objcon->table_element) . "' AND r.fk_element = " . $objcon->id;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user