Skip to content

Commit

Permalink
fix(issue): null not alowed fir requesters_id
Browse files Browse the repository at this point in the history
  • Loading branch information
btry committed Mar 23, 2022
1 parent aebd844 commit 0cfea01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/issue.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ public static function getSyncIssuesRequest() : AbstractQuery {
'entities_id as entities_id'
],
new QueryExpression('0 as is_recursive'),
"$ticketUserTable.users_id as requester_id",
new QueryExpression("COALESCE($ticketUserTable.users_id, 0) as requester_id"),
new QueryExpression("IF(`$ticketValidationTable`.`users_id_validate` IS NULL, 0, `$ticketValidationTable`.`users_id_validate`) as users_id_validator"),
new QueryExpression('0 as groups_id_validator'),
"$ticketTable.content as comment",
Expand Down

0 comments on commit 0cfea01

Please sign in to comment.