Skip to content

Commit

Permalink
use correct resultset
Browse files Browse the repository at this point in the history
  • Loading branch information
ias-ceo authored and eldy committed Sep 12, 2018
1 parent 58ba1c3 commit fece67b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/core/modules/modAgenda.class.php
Expand Up @@ -90,7 +90,7 @@ function __construct($db)
$resql = $this->db->query($sqlreadactions);
if ($resql)
{
while ($obj = $this->db->fetch_object($sqlreadactions))
while ($obj = $this->db->fetch_object($resql))
{
//if (preg_match('/_CREATE$/',$obj->code) && (! in_array($obj->code, array('COMPANY_CREATE','PRODUCT_CREATE','TASK_CREATE')))) continue; // We don't track such events (*_CREATE) by default, we prefer validation (except thirdparty/product/task creation because there is no validation).
if (preg_match('/^TASK_/',$obj->code)) continue; // We don't track such events by default.
Expand Down

0 comments on commit fece67b

Please sign in to comment.