From 2b7ffd8cb86f1218cf451ee8e01f94ee738c7794 Mon Sep 17 00:00:00 2001 From: Vitaly Litvak Date: Sat, 4 Jun 2016 21:32:50 +0300 Subject: [PATCH] Ignore 'defaultUserSettings' field in serialization of application settings, so the mobile version will work just fine --- .../java/org/traccar/web/shared/model/ApplicationSettings.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/org/traccar/web/shared/model/ApplicationSettings.java b/src/main/java/org/traccar/web/shared/model/ApplicationSettings.java index 3165fcd6..f0511b21 100644 --- a/src/main/java/org/traccar/web/shared/model/ApplicationSettings.java +++ b/src/main/java/org/traccar/web/shared/model/ApplicationSettings.java @@ -153,6 +153,7 @@ public void setAllowCommandsOnlyForAdmins(boolean allowCommandsOnlyForAdmins) { @OneToOne(cascade = CascadeType.ALL, fetch = FetchType.LAZY) @JoinColumn(foreignKey = @ForeignKey(name = "appsettings_fkey_usersettings_id")) @GwtTransient + @JsonIgnore private UserSettings userSettings; public UserSettings getUserSettings() {