mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 08:14:38 +02:00
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 artica/pandorafms!2151 Former-commit-id: db1f74b219dcac4180690d56310dcc2a11acd14d
This commit is contained in:
commit
4c94956b91
@ -143,7 +143,7 @@ if ($update) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// Standard procedure
|
// Standard procedure.
|
||||||
foreach ($agents_ as $agent_) {
|
foreach ($agents_ as $agent_) {
|
||||||
if ($modules_ == false) {
|
if ($modules_ == false) {
|
||||||
$modules_ = [];
|
$modules_ = [];
|
||||||
@ -315,7 +315,7 @@ if ($module_type != '') {
|
|||||||
|
|
||||||
$names = agents_get_modules(
|
$names = agents_get_modules(
|
||||||
array_keys($agents),
|
array_keys($agents),
|
||||||
'DISTINCT(tagente_modulo.nombre)',
|
'tagente_modulo.nombre',
|
||||||
$filter,
|
$filter,
|
||||||
false
|
false
|
||||||
);
|
);
|
||||||
@ -1965,4 +1965,3 @@ function process_manage_edit($module_name, $agents_select=null, $module_status='
|
|||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user