Merge branch 'ent-3459-7439-vista-de-edit-item-report-template-muy-lenta-debido-a-query-no-optimizada' into 'develop'

Fixed slow query in template item

See merge request 

Former-commit-id: db1f74b219dcac4180690d56310dcc2a11acd14d
This commit is contained in:
Alejandro Fraguas 2019-02-14 16:15:01 +01:00
commit 4c94956b91

@ -143,7 +143,7 @@ if ($update) {
}
}
} else {
// Standard procedure
// Standard procedure.
foreach ($agents_ as $agent_) {
if ($modules_ == false) {
$modules_ = [];
@ -315,7 +315,7 @@ if ($module_type != '') {
$names = agents_get_modules(
array_keys($agents),
'DISTINCT(tagente_modulo.nombre)',
'tagente_modulo.nombre',
$filter,
false
);
@ -1965,4 +1965,3 @@ function process_manage_edit($module_name, $agents_select=null, $module_status='
return true;
}