mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-03 23:24:07 +01:00
* [FIX] Fixed issue when deleting some kind of items if there is only one selected. Solves #389. Thanks to @MAndretti for the feedback.
This commit is contained in:
@@ -247,7 +247,7 @@ class ItemActionController implements ItemControllerInterface
|
||||
if (is_array($this->itemId)) {
|
||||
$UsersData = User::getItem()->deleteBatch($this->itemId);
|
||||
} else {
|
||||
$UsersData = (array)User::getItem()->getById($this->itemId);
|
||||
$UsersData = [User::getItem()->getById($this->itemId)];
|
||||
|
||||
User::getItem()->delete($this->itemId);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user