From 8f19036de94bf81abc84156836321e1b77c7458a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuli=20Sillanp=C3=A4=C3=A4?= <samuli.sillanpaa@helsinki.fi> Date: Tue, 25 Aug 2020 15:43:13 +0300 Subject: [PATCH] Fix deleting favorite from userlist. (#1693) - Fixes a bug introduced in 2b05cef5c7f3041444ad415935f482e8b3cacfee --- module/VuFind/src/VuFind/Db/Row/User.php | 2 +- module/VuFind/src/VuFind/Db/Row/UserList.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/module/VuFind/src/VuFind/Db/Row/User.php b/module/VuFind/src/VuFind/Db/Row/User.php index 5b2ddd8700a..d73270b45af 100644 --- a/module/VuFind/src/VuFind/Db/Row/User.php +++ b/module/VuFind/src/VuFind/Db/Row/User.php @@ -436,7 +436,7 @@ class User extends RowGateway implements \VuFind\Db\Table\DbTableAwareInterface, // Remove Resource (related tags are also removed implicitly) $userResourceTable = $this->getDbTable('UserResource'); // true here makes sure that only tags in lists are deleted - $userResourceTable->destroyResourceLinks($resourceIDs, $this->id, true); + $userResourceTable->destroyLinks($resourceIDs, $this->id, true); } /** diff --git a/module/VuFind/src/VuFind/Db/Row/UserList.php b/module/VuFind/src/VuFind/Db/Row/UserList.php index 8a3c8b29c92..57045e56569 100644 --- a/module/VuFind/src/VuFind/Db/Row/UserList.php +++ b/module/VuFind/src/VuFind/Db/Row/UserList.php @@ -259,7 +259,7 @@ class UserList extends RowGateway implements \VuFind\Db\Table\DbTableAwareInterf // Remove Resource (related tags are also removed implicitly) $userResourceTable = $this->getDbTable('UserResource'); - $userResourceTable->destroyResourceLinks( + $userResourceTable->destroyLinks( $resourceIDs, $this->user_id, $this->id ); } -- GitLab