Skip to content

Commit

Permalink
fix: old displayname shown in the event type during booking attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
tkuzynow committed May 27, 2024
1 parent e4814f5 commit ffdff1a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ public void deleteEventType(Long eventTypeId) {

public void updateEventTypeTitle(Long calComUserId, String displayName) {
CalcomEventType eventTypeByUserId = getEventTypeByUserId(calComUserId);
if (eventTypeByUserId.getTitle().contains(DefaultTextConstants.BERATUNG_MIT_DEM_DER_BERATER_IN)) {
if (eventTypeByUserId.getTitle().contains(DefaultTextConstants.BERATUNG_MIT)) {
eventTypeByUserId.setTitle(DefaultTextConstants.BERATUNG_MIT_DEM_DER_BERATER_IN + " " + displayName);
eventTypeRepository.updateEventType(eventTypeByUserId);
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,7 @@ public class DefaultTextConstants {
private DefaultTextConstants() {
// private constructor to hide the implicit public one
}

public static final String BERATUNG_MIT = "Beratung mit ";
public static final String BERATUNG_MIT_DEM_DER_BERATER_IN = "Beratung mit dem / der Berater:in";
}

0 comments on commit ffdff1a

Please sign in to comment.