Fixed an issue where the blank string is stored instead of NULL in the server table of SQLite database. Fixes #6915

This commit is contained in:
Akshay Joshi
2021-10-18 15:50:42 +05:30
parent c13b1b60e3
commit b8072bd630
2 changed files with 4 additions and 0 deletions

View File

@@ -811,6 +811,9 @@ class ServerNode(PGChildNodeView):
@staticmethod
def _update_server_details(server, sharedserver,
config_param_map, arg, value):
if value == '':
value = None
if server.shared and server.user_id != current_user.id:
setattr(sharedserver, config_param_map[arg], value)
else: