do not modify if value is the same
This commit is contained in:
parent
e3901f434e
commit
d0df311595
|
@ -1558,10 +1558,10 @@ abstract class baseModule {
|
||||||
$container['messages'][] = $this->messages[$name][0];
|
$container['messages'][] = $this->messages[$name][0];
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (isset($attributes[$name])) {
|
if (isset($attributes[$name]) && ($attributes[$name][0] != $_POST[$fieldName])) {
|
||||||
$container['mod'][$name] = array($_POST[$fieldName]);
|
$container['mod'][$name] = array($_POST[$fieldName]);
|
||||||
}
|
}
|
||||||
else {
|
elseif (!isset($attributes[$name])) {
|
||||||
$container['add'][$name] = array($_POST[$fieldName]);
|
$container['add'][$name] = array($_POST[$fieldName]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue