Skip to content

Commit

Permalink
[FIX JENKINS-37360] Fix editing default view description with auto re…
Browse files Browse the repository at this point in the history
…fresh (#2504)
  • Loading branch information
daniel-beck authored and oleg-nenashev committed Aug 24, 2016
1 parent 8acc12f commit ee447af
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -33,7 +33,9 @@ THE SOFTWARE.
<form action="submitDescription" method="post">
<table>
<f:entry help="${app.markupFormatter.helpUrl}">
<f:textarea name="description" value="${it.description}"
<!-- JENKINS-37360: Since Jenkins has a description (system message), prevent that from showing here.
Instead, use primary view's, as Jenkins's cannot be edited anyway (see Jenkins#submitDescription) -->
<f:textarea name="description" value="${it == app ? it.primaryView.description : it.description}"
codemirror-mode="${app.markupFormatter.codeMirrorMode}" codemirror-config="${app.markupFormatter.codeMirrorConfig}" previewEndpoint="/markupFormatter/previewDescription"/>
</f:entry>
</table>
Expand Down

0 comments on commit ee447af

Please sign in to comment.