- Affected version
- 2.1.1
When debug/developer mode is enabled, the list of options for an add-on do not include options linked to a debug only group. This is inconsistent with how you can view debug-only options from the option group list.
The 'OptionGroup.debug_only' check should only be added if the site is not in debug mode;
	
	
	
		
				
			The 'OptionGroup.debug_only' check should only be added if the site is not in debug mode;
		PHP:
	
	    public function getGroupsAndOptionsForAddOn($addOnId)
    {
        /** @var \XF\Mvc\Entity\ArrayCollection $relations */
        $relations = $this->finder('XF:OptionGroupRelation')
            ->with('Option', true)
            ->with('OptionGroup', true)
            ->where('Option.addon_id', $addOnId)
            ->where('OptionGroup.debug_only', 0)
            ->order(['OptionGroup.display_order', 'display_order', 'Option.option_id'])
            ->fetch(); 
 
		 
 
		 
 
		 
 
		 
 
		