[4.1 RC 2] Problem with HTML on page editor when page's content type has been disabled, unable to uncheck it
When editing a wiki page where the current content type has been disabled, the rendered HTML in the "Treat this page as a" form row is garbled. The 'loss of functionality' part of the report is that the garbled HTML means it isn't possible to uncheck the disabled content type.
Pasted below is how the HTML looks (formatted slightly to help with readability) when attempting to edit a book where the book content type was later disabled:
Code:
<dd>
<div class="vw-switch-types ">
<input type="hidden" name="typelist[18]" value="0">
<ul class="inputChoices">
<li class="inputChoices-choice">
<label class="iconic">
<input type="checkbox" name="typelist[18]" value="1" checked="checked" data-vw-trigger="typelist-option" class="vw-typelist-option vw-typelist-container vw-typelist-disabled" afterhtml="<div class=" vw-error-list="" errorpanel"="" id="yui_3_5_0_1_1586354670447_11">IMPORTANT! This type is no longer permitted. You will not be able to save any changes to this page until this type is removed.
</label>
</li>
</ul></div>" /><i aria-hidden="true"></i><span class="iconic-label">Book, so it can contain sub-pages</span>
</dd>
Perhaps this 'type is no longer permitted' warning could also be styled better in XenForo 2.x, such as a div element with the CSS classes: .block-rowMessage .block-rowMessage--small .block-rowMessage--warning