Skip to content

Commit

Permalink
[JENKINS-64341] Code review fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ironcerocloudbees committed Feb 19, 2021
1 parent 6f98105 commit f14e0a7
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,13 @@ Behaviour.specify(".specific-user-authorization", "checkPasswordRequired", 0, fu
var useridField = findFormItem(e, "userid", findChild(e));
var passwordField = findFormItem(e, "password", findChild(e));
var passwordFieldBlock = findAncestor(passwordField, "TR");
/*
[JENKINS-64341] - In Jenkins version greater than 2.263.4
the table tags for fields (in forms) were replaced by div tags.
Since the changes were applied the 'findAncestor(passwordField, "TR")'
method returns null. It is necessary to use the method
'findAncestorClass(passwordField, "tr")' instead of.
*/
if (passwordFieldBlock == null) {
passwordFieldBlock = findAncestorClass(passwordField, "tr");
}
Expand Down

0 comments on commit f14e0a7

Please sign in to comment.