From ff8fd54b91c07d7f799b11b8f1fe3946a1a7aa04 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Tue, 7 Nov 2017 20:28:38 +0100 Subject: [PATCH] fixed photo deletion --- lam/lib/modules/windowsUser.inc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lam/lib/modules/windowsUser.inc b/lam/lib/modules/windowsUser.inc index 09160971..6923834d 100644 --- a/lam/lib/modules/windowsUser.inc +++ b/lam/lib/modules/windowsUser.inc @@ -1540,6 +1540,12 @@ class windowsUser extends baseModule implements passwordService { if (!$this->isBooleanConfigOptionSet('windowsUser_hideproxyAddresses', true)) { $this->processMultiValueInputTextField('proxyAddresses', $return); } + // photo + if (!$this->isBooleanConfigOptionSet('windowsUser_hidejpegPhoto', true)) { + if (isset($_POST['delPhoto'])) { + unset($this->attributes['jpegPhoto']); + } + } return $return; }