diff --git a/core/modules/shortcut/lib/Drupal/shortcut/ShortcutStorageController.php b/core/modules/shortcut/lib/Drupal/shortcut/ShortcutStorageController.php index a7150b1..77aa365 100644 --- a/core/modules/shortcut/lib/Drupal/shortcut/ShortcutStorageController.php +++ b/core/modules/shortcut/lib/Drupal/shortcut/ShortcutStorageController.php @@ -45,7 +45,7 @@ public function deleteAssignedShortcutSets(Shortcut $entity) { */ public function assignUser($shortcut_set, $account) { db_merge('shortcut_set_users') - ->key(array('uid' => $account->uid)) + ->key(array('uid' => $account->id())) ->fields(array('set_name' => $shortcut_set->id())) ->execute(); drupal_static_reset('shortcut_current_displayed_set'); @@ -56,7 +56,7 @@ public function assignUser($shortcut_set, $account) { */ public function unassignUser($account) { $deleted = db_delete('shortcut_set_users') - ->condition('uid', $account->uid) + ->condition('uid', $account->id()) ->execute(); return (bool) $deleted; }