mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-01-14 16:36:51 +01:00
Fix sum delle query filtrate
This commit is contained in:
parent
d5db3cf62e
commit
a06441f8d1
@ -259,6 +259,11 @@ class Query
|
||||
|
||||
$result_query = self::getQuery($structure, $search);
|
||||
|
||||
// Filtri derivanti dai permessi (eventuali)
|
||||
if (empty($structure->originalModule)) {
|
||||
$result_query = Modules::replaceAdditionals($structure->id, $result_query);
|
||||
}
|
||||
|
||||
$query = self::str_replace_once('SELECT', 'SELECT '.implode(', ', $total['summable']).' FROM(SELECT ', $result_query).') AS `z`';
|
||||
$sums = database()->fetchOne($query);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user