diff --git a/htdocs/comm/action/class/actioncomm.class.php b/htdocs/comm/action/class/actioncomm.class.php index 6e92fd680df..80e783f74f5 100644 --- a/htdocs/comm/action/class/actioncomm.class.php +++ b/htdocs/comm/action/class/actioncomm.class.php @@ -635,6 +635,7 @@ class ActionComm extends CommonObject $sql ='SELECT fk_actioncomm, element_type, fk_element, answer_status, mandatory, transparency'; $sql.=' FROM '.MAIN_DB_PREFIX.'actioncomm_resources'; $sql.=' WHERE fk_actioncomm = '.$this->id; + $sql.=" AND element_type IN ('user', 'socpeople')"; $resql=$this->db->query($sql); if ($resql) {