fix(db): remove demo data auto-seeding to prevent resurrection of deleted items (v1.3.2)
This commit is contained in:
1 parent
e2af2c34c9
commit
e6540c866b
5 files changed
+15
-238
No files matched your search
@@ -110,6 +110,8 @@ class PhonebookManager
|
||||
if (!empty($activeExtIds)) {
|
||||
$inClause = implode(',', $activeExtIds);
|
||||
$db->exec("DELETE FROM phonebook_contacts WHERE is_internal = 1 AND extension_id IS NOT NULL AND extension_id NOT IN ({$inClause})");
|
||||
} else {
|
||||
$db->exec("DELETE FROM phonebook_contacts WHERE is_internal = 1");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user