From e500190728462cf881dfa3cbb93a9a58f1b93aa8 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 1 Sep 2021 09:33:54 +0200 Subject: [PATCH] * Addressbook/PostgreSQL: fix SQL error deleting a contact finally --- api/src/Contacts/Sql.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/Contacts/Sql.php b/api/src/Contacts/Sql.php index 65b1eb6982..0714ea806b 100644 --- a/api/src/Contacts/Sql.php +++ b/api/src/Contacts/Sql.php @@ -1165,7 +1165,7 @@ class Sql extends Api\Storage } elseif (!isset($keys['contact_id'])) { - $query = parent::delete($keys,true); + $query = ['contact_id' => parent::delete($keys,true)]; } $this->db->delete(self::SHARED_TABLE, $query ?? $keys, __LINE__, __FILE__); }