Merge branch '2938-Problema-con-tags-en-el-wizard-y-la-vista-de-informes-return-2-dev' into 'develop'

Added tagent_secondary_group in functions_reporting

See merge request artica/pandorafms!2063

Former-commit-id: b4d8339957d37c16d5e404299ad85acaa3298d01
This commit is contained in:
vgilc 2018-12-10 17:42:23 +01:00
commit 51df84c981
1 changed files with 2 additions and 1 deletions

View File

@ -159,7 +159,8 @@ function reporting_make_reporting_data($report = null, $id_report,
true);
$sql_tags_join = "INNER JOIN tagente ON tagente.id_agente = t1.id_agente
INNER JOIN ttag_module ON ttag_module.id_agente_modulo = t1.id_agente_modulo";
INNER JOIN ttag_module ON ttag_module.id_agente_modulo = t1.id_agente_modulo
LEFT JOIN tagent_secondary_group tasg ON tagente.id_agente = tasg.id_agent";
$sql = sprintf('SELECT count(*) FROM tagente_modulo t1
%s WHERE t1.delete_pending = 0 AND t1.id_agente_modulo = '. $content["id_agent_module"] .'