From d0df3115957045925af54aa6a9bf57ccde56e558 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Fri, 2 Sep 2016 11:07:15 +0200 Subject: [PATCH] do not modify if value is the same --- lam/lib/baseModule.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lam/lib/baseModule.inc b/lam/lib/baseModule.inc index 157dc602..b0f5a7cb 100644 --- a/lam/lib/baseModule.inc +++ b/lam/lib/baseModule.inc @@ -1558,10 +1558,10 @@ abstract class baseModule { $container['messages'][] = $this->messages[$name][0]; } else { - if (isset($attributes[$name])) { + if (isset($attributes[$name]) && ($attributes[$name][0] != $_POST[$fieldName])) { $container['mod'][$name] = array($_POST[$fieldName]); } - else { + elseif (!isset($attributes[$name])) { $container['add'][$name] = array($_POST[$fieldName]); } }