SQL error with postgresql on top menu #1304

This commit is contained in:
Karel.Picman 2021-10-25 17:13:54 +02:00
parent 5e310c9416
commit 1bce96473d

View File

@ -252,9 +252,9 @@ class DmsfQuery < Query
CAST(NULL AS #{get_integer_type}) AS author,
'project' AS type,
CAST(0 AS #{get_integer_type}) AS deleted,
0 AS sort#{cf_columns},
'' as customized_type,
0 as customized_id}).visible
0 as customized_id,
0 AS sort#{cf_columns}}).visible
if dmsf_folder_id || deleted
scope.none
else