Skip to content

Commit

Permalink
Update MultiBranchProject.java
Browse files Browse the repository at this point in the history
  • Loading branch information
janfaracik committed Aug 28, 2024
1 parent c3620a4 commit 9de361d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/jenkins/branch/MultiBranchProject.java
Original file line number Diff line number Diff line change
Expand Up @@ -2137,8 +2137,9 @@ private String getProjectDisplayName(@NonNull P project, @NonNull String rawName
.orElse(null);
}

// Default to displaying the project's display name if a trait hasn't been provided
if (naming == null) {
return rawName;
naming = MultiBranchProjectDisplayNamingStrategy.OBJECT_DISPLAY_NAME;
}

final ObjectMetadataAction action = naming.needsObjectDisplayName()
Expand Down

0 comments on commit 9de361d

Please sign in to comment.