From 4104416e813e8ec80ce0e91a35f8e0bc538bd0d0 Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Fri, 6 Nov 2020 13:01:37 +0100 Subject: only delete specified config Signed-off-by: Arthur Schiwon --- apps/user_ldap/lib/Helper.php | 1 + 1 file changed, 1 insertion(+) (limited to 'apps/user_ldap/lib/Helper.php') diff --git a/apps/user_ldap/lib/Helper.php b/apps/user_ldap/lib/Helper.php index c1e3bed674e..dce67a76c41 100644 --- a/apps/user_ldap/lib/Helper.php +++ b/apps/user_ldap/lib/Helper.php @@ -165,6 +165,7 @@ class Helper { $query = $this->connection->getQueryBuilder(); $query->delete('appconfig') ->where($query->expr()->eq('appid', $query->createNamedParameter('user_ldap'))) + ->andWhere($query->expr()->like('configkey', $query->createNamedParameter((string)$prefix . '%'))) ->andWhere($query->expr()->notIn('configkey', $query->createNamedParameter([ 'enabled', 'installed_version', -- cgit v1.2.3