FIX #11957
This commit is contained in:
parent
bfc8369418
commit
25665daa40
@ -791,16 +791,16 @@ class ActionComm extends CommonObject
|
|||||||
*/
|
*/
|
||||||
public function fetchResources()
|
public function fetchResources()
|
||||||
{
|
{
|
||||||
$sql = 'SELECT fk_actioncomm, element_type, fk_element, answer_status, mandatory, transparency';
|
$this->userassigned = array();
|
||||||
|
$this->socpeopleassigned = array();
|
||||||
|
|
||||||
|
$sql = 'SELECT fk_actioncomm, element_type, fk_element, answer_status, mandatory, transparency';
|
||||||
$sql .= ' FROM '.MAIN_DB_PREFIX.'actioncomm_resources';
|
$sql .= ' FROM '.MAIN_DB_PREFIX.'actioncomm_resources';
|
||||||
$sql .= ' WHERE fk_actioncomm = '.$this->id;
|
$sql .= ' WHERE fk_actioncomm = '.$this->id;
|
||||||
$sql .= " AND element_type IN ('user', 'socpeople')";
|
$sql .= " AND element_type IN ('user', 'socpeople')";
|
||||||
$resql = $this->db->query($sql);
|
$resql = $this->db->query($sql);
|
||||||
if ($resql)
|
if ($resql)
|
||||||
{
|
{
|
||||||
$this->userassigned = array();
|
|
||||||
$this->socpeopleassigned = array();
|
|
||||||
|
|
||||||
// If owner is known, we must but id first into list
|
// If owner is known, we must but id first into list
|
||||||
if ($this->userownerid > 0) $this->userassigned[$this->userownerid] = array('id'=>$this->userownerid); // Set first so will be first into list.
|
if ($this->userownerid > 0) $this->userassigned[$this->userownerid] = array('id'=>$this->userownerid); // Set first so will be first into list.
|
||||||
|
|
||||||
|
|||||||
@ -554,7 +554,10 @@ if ($resql)
|
|||||||
$actionstatic->type_picto = $obj->type_picto;
|
$actionstatic->type_picto = $obj->type_picto;
|
||||||
$actionstatic->label = $obj->label;
|
$actionstatic->label = $obj->label;
|
||||||
$actionstatic->location = $obj->location;
|
$actionstatic->location = $obj->location;
|
||||||
$actionstatic->note = dol_htmlentitiesbr($obj->note);
|
$actionstatic->note = dol_htmlentitiesbr($obj->note); // deprecated
|
||||||
|
$actionstatic->note_public = dol_htmlentitiesbr($obj->note);
|
||||||
|
|
||||||
|
$actionstatic->fetchResources();
|
||||||
|
|
||||||
print '<tr class="oddeven">';
|
print '<tr class="oddeven">';
|
||||||
|
|
||||||
@ -656,7 +659,6 @@ if ($resql)
|
|||||||
if (!empty($arrayfields['a.fk_contact']['checked'])) {
|
if (!empty($arrayfields['a.fk_contact']['checked'])) {
|
||||||
print '<td>';
|
print '<td>';
|
||||||
|
|
||||||
$actionstatic->fetchResources();
|
|
||||||
if (!empty($actionstatic->socpeopleassigned))
|
if (!empty($actionstatic->socpeopleassigned))
|
||||||
{
|
{
|
||||||
$contactList = array();
|
$contactList = array();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user