1
0
Fork 0

Merge pull request #6594 from annando/delete-item

Partly Reverted #6583
This commit is contained in:
Tobias Diekershoff 2019-02-06 09:02:18 +01:00 committed by GitHub
commit 4a501e4e46
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -24,7 +24,7 @@ class RemoveContact {
do { do {
$items = Item::select(['id'], $condition, ['limit' => 100]); $items = Item::select(['id'], $condition, ['limit' => 100]);
while ($item = Item::fetch($items)) { while ($item = Item::fetch($items)) {
Item::deleteById($item['id'], PRIORITY_NEGLIGIBLE); DBA::delete('item', ['id' => $item['id']]);
} }
DBA::close($items); DBA::close($items);
} while (Item::exists($condition)); } while (Item::exists($condition));