Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autumoswitzerland committed Jan 21, 2024
1 parent 1175643 commit 685e5ac
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/main/java/ch/autumo/beetroot/handler/BaseHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -1266,7 +1266,7 @@ public String getLayout(Session userSession) {

/**
* Page title show left above the navigation area.
* If not overwritten, the entities nahe is shown
* If not overwritten, the entity name is shown
* starting with an upper-case letter!
*
* @param userSession user session
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,11 @@ public HandlerResponse readData(BeetRootHTTPSession session, int id) throws Exce
else
val = o.toString();

if (this.displayField != null && col[0].equals(this.displayField)) {
super.registerDisplayField(val);
if (this.displayField != null && col[0].equalsIgnoreCase(this.displayField)) {
if (val == null || val.length() == 0)
super.registerDisplayField(""+id);
else
super.registerDisplayField(val);
}

// If we have a reference table
Expand Down

0 comments on commit 685e5ac

Please sign in to comment.