mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-19 15:22:17 +02:00
#870: when a user deletes all her/his shortcuts at once, this was deleting all the shortcuts for all users.
SVN:trunk[3099]
This commit is contained in:
@@ -1042,6 +1042,7 @@ EOF
|
|||||||
|
|
||||||
case 'shortcut_delete_go':
|
case 'shortcut_delete_go':
|
||||||
$oSearch = new DBObjectSearch('Shortcut');
|
$oSearch = new DBObjectSearch('Shortcut');
|
||||||
|
$oSearch->AddCondition('user_id', UserRights::GetUserId(), '=');
|
||||||
$aShortcuts = utils::ReadMultipleSelection($oSearch);
|
$aShortcuts = utils::ReadMultipleSelection($oSearch);
|
||||||
foreach ($aShortcuts as $iShortcut)
|
foreach ($aShortcuts as $iShortcut)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user