mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
fixed error in massive operation
Former-commit-id: 691f3557d44c686645cfa634eab3630d060def33
This commit is contained in:
parent
7e2fb25e27
commit
ac228a7fad
@ -285,7 +285,7 @@ else {
|
|||||||
$filter = false;
|
$filter = false;
|
||||||
}
|
}
|
||||||
$names = agents_get_modules (array_keys ($agents),
|
$names = agents_get_modules (array_keys ($agents),
|
||||||
'DISTINCT(tagente_modulo.nombre)', $filter, false);
|
'tagente_modulo.nombre', $filter, false);
|
||||||
foreach ($names as $name) {
|
foreach ($names as $name) {
|
||||||
$modules[$name['nombre']] = $name['nombre'];
|
$modules[$name['nombre']] = $name['nombre'];
|
||||||
}
|
}
|
||||||
|
@ -1231,8 +1231,8 @@ function agents_get_modules ($id_agent = null, $details = false,
|
|||||||
ON tagente.id_agente = tasg.id_agent
|
ON tagente.id_agente = tasg.id_agent
|
||||||
WHERE tagente_modulo.delete_pending = 0
|
WHERE tagente_modulo.delete_pending = 0
|
||||||
AND %s
|
AND %s
|
||||||
GROUP BY tagente_modulo.id_agente_modulo
|
GROUP BY 1
|
||||||
ORDER BY tagente_modulo.nombre',
|
ORDER BY 1',
|
||||||
($details != 'tagente_modulo.*' && $indexed) ? 'tagente_modulo.id_agente_modulo,' : '',
|
($details != 'tagente_modulo.*' && $indexed) ? 'tagente_modulo.id_agente_modulo,' : '',
|
||||||
io_safe_output(implode (",", (array) $details)),
|
io_safe_output(implode (",", (array) $details)),
|
||||||
$sql_tags_join,
|
$sql_tags_join,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user