Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[JENKINS-62908] Remove table row for embedded descriptor class #543

Merged
merged 1 commit into from
Dec 11, 2020

Conversation

alecharp
Copy link
Member

@alecharp alecharp commented Dec 4, 2020

The inspiration came from https://github.com/jenkinsci/jenkins/blob/master/core/src/main/resources/lib/form/dropdownListBlock.jelly#L38.

The problem was the row just to have a hidden input to specify the stapler-class, when in fact the dropdownListBlock has an attribute to store this value.

Copy link

@fqueiruga fqueiruga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@MRamonLeon MRamonLeon merged commit 1032267 into jenkinsci:master Dec 11, 2020
<tr><td><input type="hidden" name="stapler-class" value="${instance.descriptor.clazz.name}"/></td></tr>
<st:include from="${instance.descriptor}" page="${instance.descriptor.configPage}" />
</f:dropdownListBlock>
<f:dropdownListBlock value="0" title="${instance.amiType.descriptor.displayName}" staperClass="${instance.descriptor.clazz.name}" selected="true">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would form:dropdownDescriptorSelector do all of this in one shot?
code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants