Merge branch 'ent-3314-Agents/Modules-item-error-on-report' into 'develop'

Ent 3314 agents/modules item error on report

See merge request artica/pandorafms!2296
This commit is contained in:
Daniel Rodriguez 2019-09-16 15:37:58 +02:00
commit c7b62e8404
1 changed files with 5 additions and 4 deletions

View File

@ -1565,10 +1565,8 @@ $class = 'databox filters';
$all_modules = '';
} else {
$all_modules = db_get_all_rows_sql(
'SELECT DISTINCT nombre, id_agente_modulo
FROM tagente_modulo
WHERE id_agente
IN ('.implode(',', array_values($id_agents)).')'
'SELECT DISTINCT nombre FROM
tagente_modulo WHERE id_agente IN ('.implode(',', array_values($id_agents)).')'
);
}
@ -3529,6 +3527,9 @@ $(document).ready (function () {
$("#id_agents").change(agent_changed_by_multiple_agents);
// Load selected modules by default
$("#id_agents2").trigger('click');
$("#combo_group").change (
function () {
jQuery.post ("ajax.php",