From 9f36bb81aebf71015f9cd32b4fc50954930ab09e Mon Sep 17 00:00:00 2001 From: Touhidur Rahman Date: Mon, 25 Nov 2024 00:07:51 +0600 Subject: [PATCH] pkp/pkp-lib#10292 make context id required on controlled vocabs operations --- .../install/ControlledVocabMigration.php | 34 +++++++++++++++++++ dbscripts/xml/install.xml | 2 +- tools/cleanReviewerInterests.php | 5 ++- 3 files changed, 39 insertions(+), 2 deletions(-) create mode 100644 classes/migration/install/ControlledVocabMigration.php diff --git a/classes/migration/install/ControlledVocabMigration.php b/classes/migration/install/ControlledVocabMigration.php new file mode 100644 index 00000000000..689d71a63cf --- /dev/null +++ b/classes/migration/install/ControlledVocabMigration.php @@ -0,0 +1,34 @@ + - + diff --git a/tools/cleanReviewerInterests.php b/tools/cleanReviewerInterests.php index ca161309b58..d127033cf19 100755 --- a/tools/cleanReviewerInterests.php +++ b/tools/cleanReviewerInterests.php @@ -90,7 +90,10 @@ public function execute(): void protected function _getOrphanVocabInterests(): Collection { $controlledVocab = Repo::controlledVocab()->build( - UserInterest::CONTROLLED_VOCAB_INTEREST + UserInterest::CONTROLLED_VOCAB_INTEREST, + UserInterest::CONTROLLED_VOCAB_INTEREST_ASSOC_TYPE, + UserInterest::CONTROLLED_VOCAB_INTEREST_ASSOC_ID, + UserInterest::CONTROLLED_VOCAB_INTEREST_CONTEXT_ID ); return ControlledVocabEntry::query()