Skip to content

Commit 19a8b1c

Browse files
committed
[JENKINS-73785] Restore ContextMenu#from with StaplerRequest/Response args
1 parent 2d2adef commit 19a8b1c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

core/src/main/java/jenkins/model/ModelObjectWithContextMenu.java

+4
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,10 @@ public ContextMenu from(ModelObjectWithContextMenu self, StaplerRequest2 request
299299
return from(self, request, response, "sidepanel");
300300
}
301301

302+
public ContextMenu from(ModelObjectWithContextMenu self, StaplerRequest request, StaplerResponse response) throws JellyException, IOException {
303+
return from(self, StaplerRequest.toStaplerRequest2(request), StaplerResponse.toStaplerResponse2(response), "sidepanel");
304+
}
305+
302306
public ContextMenu from(ModelObjectWithContextMenu self, StaplerRequest2 request, StaplerResponse2 response, String view) throws JellyException, IOException {
303307
WebApp webApp = WebApp.getCurrent();
304308
final Script s = webApp.getMetaClass(self).getTearOff(JellyClassTearOff.class).findScript(view);

0 commit comments

Comments
 (0)