-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[stable29] fix: (CalDav) Delete invitation link when deleting Calendars or Events #49428
Conversation
Signed-off-by: SebastianKrupinski <krupinskis05@gmail.com>
// delete all links that match object uid's | ||
$cmd = $this->db->getQueryBuilder(); | ||
$cmd->delete($this->dbObjectInvitationsTable) | ||
->where($cmd->expr()->in('uid', $cmd->createNamedParameter('uids'), IQueryBuilder::PARAM_STR_ARRAY)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought one had to use \OCP\DB\QueryBuilder\IQueryBuilder::createParameter
for a parameter, and createNamedParameter
was to set a value directly.
Fine by me if the current code works
// delete all links that match object uid's | ||
$cmd = $this->db->getQueryBuilder(); | ||
$cmd->delete($this->dbObjectInvitationsTable) | ||
->where($cmd->expr()->in('uid', $cmd->createNamedParameter('uids'), IQueryBuilder::PARAM_STR_ARRAY)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should be createParameter()
instead. I'm 99% sure.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See #49454
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting, I step through tested this, it executes without any errors, but does not actual do what its supposed to do.
Backport of PR #47832