Skip to content

Commit

Permalink
Also exclude reports from _trash table suffix
Browse files Browse the repository at this point in the history
  • Loading branch information
mattmundell committed Apr 28, 2019
1 parent a477e63 commit 8eedd01
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/manage_sql.c
Original file line number Diff line number Diff line change
Expand Up @@ -4532,7 +4532,9 @@ find_resource_with_permission (const char* type, const char* uuid,
switch (sql_int64 (resource,
"SELECT id FROM %ss%s WHERE uuid = '%s'%s%s;",
type,
(strcmp (type, "task") && trash) ? "_trash" : "",
(trash && strcmp (type, "task") && strcmp (type, "report"))
? "_trash"
: "",
quoted_uuid,
strcmp (type, "task")
? ""
Expand Down

0 comments on commit 8eedd01

Please sign in to comment.