Skip to content

Commit

Permalink
Only show dependency in course home tool and not in other tools - ref…
Browse files Browse the repository at this point in the history
…s BT#20395
  • Loading branch information
NicoDucou committed Dec 1, 2022
1 parent d9d0711 commit b148f7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main/inc/introductionSection.inc.php
Expand Up @@ -366,7 +366,7 @@

$showSequencesBlock = false;

if (api_get_configuration_value('resource_sequence_show_dependency_in_course_intro')) {
if (api_get_configuration_value('resource_sequence_show_dependency_in_course_intro' && $tool == TOOL_COURSE_HOMEPAGE)) {
$sequenceResourceRepo = $em->getRepository(SequenceResource::class);
$sequences = $sequenceResourceRepo->getDependents($course_id, SequenceResource::COURSE_TYPE);
$firstSequence = current($sequences);
Expand Down

0 comments on commit b148f7b

Please sign in to comment.