Fixed Incorrect label "for" / ID in option_template_registrationDefaults

DragonByte Tech

Well-known member
Affected version
2.2.8pl1
In the template admin:option_template_registrationDefaults, "Watch content on creation" and "Watch content on interaction" have the same <label for=""> and id="" attributes.

HTML:
        <dl class="inputLabelPair">
            <dt><label for="{$inputName}_dws">{{ phrase('watch_content_on_creation') }}</label></dt>
            <dd><xf:select name="{$inputName}[creation_watch_state]" value="{$option.option_value.creation_watch_state}" id="{$inputName}_dws">
                <xf:option value="watch_no_email">{{ phrase('yes') }}</xf:option>
                <xf:option value="watch_email">{{ phrase('yes_with_email') }}</xf:option>
                <xf:option>{{ phrase('no') }}</xf:option>
            </xf:select></dd>
        </dl>
        <dl class="inputLabelPair">
            <dt><label for="{$inputName}_dws">{{ phrase('watch_content_on_interaction') }}</label></dt>
            <dd><xf:select name="{$inputName}[interaction_watch_state]" value="{$option.option_value.interaction_watch_state}" id="{$inputName}_dws">
                <xf:option value="watch_no_email">{{ phrase('yes') }}</xf:option>
                <xf:option value="watch_email">{{ phrase('yes_with_email') }}</xf:option>
                <xf:option>{{ phrase('no') }}</xf:option>
            </xf:select></dd>
        </dl>
 

XF Bug Bot

XenForo bug fixer bot
Staff member
Thank you for reporting this issue, it has now been resolved. We are aiming to include any changes that have been made in a future XF release (2.2.9).

Change log:
Fix attributes on the registration defaults option not referring to unique inputs
There may be a delay before changes are rolled out to the XenForo Community.
 
Top