Skip to content

Commit 6845283

Browse files
committed
[JENKINS-60117] Fix Plugin Manager "Enabled" column sorting
The "Enabled" column in the Installed Plugins table uses `data="${state}"` where state is `true` or `null`. Since the sortable.js sorts by the `data` attribute alphabetically, plugins with `false` or `null` were not sorting effectively relative to `true`. This commit changes the `data` attribute for sorting to `1` (true/active) and `0` (false/inactive) for deterministic boolean sorting.
1 parent 396f78b commit 6845283

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/resources/hudson/PluginManager/installed.jelly

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ THE SOFTWARE.
186186
</td>
187187
</j:if>
188188
<j:set var="state" value="${p.enabled?'true':null}"/>
189-
<td class="jenkins-table__cell--tight enable" data="${state}">
189+
<td class="jenkins-table__cell--tight enable" data="${p.active?'1':'0'}">
190190
<div class="jenkins-table__cell__button-wrapper">
191191
<span class="jenkins-toggle-switch">
192192
<input type="checkbox" checked="${state}"

0 commit comments

Comments
 (0)