Merge branch 'ent.3698-Conteo-de-notificaciones-un-poco-raro' into 'develop'

Fixed messages count

See merge request artica/pandorafms!2260
This commit is contained in:
Alejandro Fraguas 2019-07-03 10:12:03 +02:00
commit 8ef22373a7
1 changed files with 1 additions and 1 deletions

View File

@ -383,7 +383,7 @@ function messages_get_count(
}
$sql = sprintf(
'SELECT count(*) as "n" FROM (
'SELECT count(distinct id_mensaje) as "n" FROM (
SELECT
tm.*,
utimestamp_read > 0 as "read"