From 7496531ad8d749902d937239de045a0ca85f88b8 Mon Sep 17 00:00:00 2001 From: hecht Date: Sat, 23 Sep 2017 08:53:50 +0000 Subject: [PATCH] fixed edit issue with tournaments --- ag/gm/include/tournament.inc.php | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/ag/gm/include/tournament.inc.php b/ag/gm/include/tournament.inc.php index 9d9ca5f..3c46268 100644 --- a/ag/gm/include/tournament.inc.php +++ b/ag/gm/include/tournament.inc.php @@ -29,6 +29,8 @@ function persistTournamentChanges($request) { if ($key == 'id') { continue; + } else if ($value == "") { + $changes[] = $key.' = NULL'; } else if ($key == 'name' || $key == 'abbrevation' || $key == 'icon' || $key == 'fruit_type') { $changes[] = $key.'=\''.$value.'\''; } else { @@ -61,7 +63,7 @@ function displayTournamentForm($request, $data) { Name: - /> + @@ -105,7 +107,7 @@ function displayTournamentForm($request, $data) { - + Fruchttyp - + Tag des Monats