From cd4d2dad10368908e5fd25f699df82973370794c Mon Sep 17 00:00:00 2001 From: "Martin Helmling martin.helmling@octosoft.eu" Date: Wed, 31 Aug 2016 11:59:06 +0200 Subject: [PATCH] BUG_FIX Userpreferences Falls keine Id vorhanden muss ein insert gemacht werden --- SL/Helper/UserPreferences.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SL/Helper/UserPreferences.pm b/SL/Helper/UserPreferences.pm index 1fea9e7f4..f6a6d4d43 100644 --- a/SL/Helper/UserPreferences.pm +++ b/SL/Helper/UserPreferences.pm @@ -15,7 +15,7 @@ sub store { my $tuple = $self->get_tuple($key); - if ($tuple) { + if ($tuple && $tuple->{id}) { $tuple->{value} = $value; $self->_update($tuple); } else { -- 2.20.1