Skip to content

Commit 151b770

Browse files
committed
Version bump and retrieve settings display name if they are null
1 parent 749b583 commit 151b770

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<groupId>de.presti.ree6</groupId>
88
<artifactId>Ree6-SQL</artifactId>
99
<description>This is the SQL-Module for Ree6!</description>
10-
<version>2.0.3</version>
10+
<version>2.0.4</version>
1111

1212
<properties>
1313
<sonar.organization>ree6-applications</sonar.organization>

src/main/java/de/presti/ree6/sql/SQLWorker.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1506,7 +1506,7 @@ public Setting getSetting(String guildId, String settingName) {
15061506
// Check if there is an entry in the database.
15071507
if (setting != null) {
15081508
if (setting.getDisplayName() == null) {
1509-
setting.setDisplayName(settingName);
1509+
setting.setDisplayName(SettingsManager.getDefault(settingName).getDisplayName());
15101510
updateEntity(setting);
15111511
}
15121512
return setting;

0 commit comments

Comments
 (0)