diff --git a/variants/RuleExtensions/interactiveMap/interactiveMap.php b/variants/RuleExtensions/interactiveMap/interactiveMap.php index c56cc959a..a81b8645f 100644 --- a/variants/RuleExtensions/interactiveMap/interactiveMap.php +++ b/variants/RuleExtensions/interactiveMap/interactiveMap.php @@ -13,6 +13,9 @@ public function __construct($Variant, $mapName = 'IA_smallmap.png') if(!$this->Variant->rules[RULE_CUSTOM_MAP]){ // by default, construct the interactive map with a Classic variant instance to laod classic map data $classicVariant = libVariant::loadFromVariantName('Classic'); + // The parent constructor stores the variant itself in the property $this->Variant. + // To still access the rules (to skip any extensions), the rules need to be copied to the injected variant object. + $classicVariant->rules = $Variant->rules; parent::__construct($classicVariant, $mapName); } else { parent::__construct($Variant, $mapName);