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]); } }