Skip to content

Commit

Permalink
Test: Plugins MUST have a name
Browse files Browse the repository at this point in the history
  • Loading branch information
kergomard committed Nov 7, 2024
1 parent 69054fa commit d150c11
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -707,10 +707,11 @@ private function isActiveQuestionType(array $questionData): bool
return true;
}

if (!$this->component_repository->getComponentByTypeAndName(
ilComponentInfo::TYPE_MODULES,
'TestQuestionPool'
)->getPluginSlotById('qst')->hasPluginName($questionData['plugin_name'])) {
if (!isset($questionData['plugin_name'])
|| !$this->component_repository->getComponentByTypeAndName(
ilComponentInfo::TYPE_MODULES,
'TestQuestionPool'
)->getPluginSlotById('qst')->hasPluginName($questionData['plugin_name'])) {
return false;
}

Expand Down

0 comments on commit d150c11

Please sign in to comment.